Spread for ASP.NET 9.0 Product Documentation
Mask Property
Example 


Gets or set the mask.
Syntax
'Declaration
 
Public Property Mask As String
'Usage
 
Dim instance As MaskedEditCellType
Dim value As String
 
instance.Mask = value
 
value = instance.Mask
public string Mask {get; set;}

Property Value

String containing the mask
Example
This example creates a mask cell for monetary input.
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;
Dim m As 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
Requirements

Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional

See Also

Reference

MaskedEditCellType Class
MaskedEditCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.