可以通过以下代码来使用 MaskedEditCellType :
- FarPoint.Web.Spread.Extender.MaskedEditCellType m = new FarPoint.Web.Spread.Extender.MaskedEditCellType();
- m.Editor.BackColor = Drawing.Color.Beige;
- m.Editor.BorderWidth = 1;
- m.ShowEditor = true;
- m.MaskType = AjaxControlToolkit.MaskedEditType.Number;
- m.Mask = "9,999,999.99";
- m.DisplayMoney = AjaxControlToolkit.MaskedEditShowSymbol.Left;
- m.ClearMaskOnLostFocus = true;
- m.PromptCharacter = "#";
- m.InputDirection = AjaxControlToolkit.MaskedEditInputDirection.LeftToRight;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = m;
复制代码 |