Spread ASP.NET 6.0 Product Documentation
MaskType Property
See Also  Example Send Feedback
FarPoint.Web.Spread.Extender Assembly > FarPoint.Web.Spread.Extender Namespace > MaskedEditCellType Class : MaskType Property


Glossary Item Box

Gets or sets the type of mask.

Syntax

Visual Basic (Declaration) 
Public Property MaskType As AjaxControlToolkit.MaskedEditType
Visual Basic (Usage)Copy Code
Dim instance As MaskedEditCellType
Dim value As AjaxControlToolkit.MaskedEditType
 
instance.MaskType = value
 
value = instance.MaskType
C# 
public AjaxControlToolkit.MaskedEditType MaskType {get; set;}

Example

This example creates a mask cell for monetary input.
C#Copy Code
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;
Visual BasicCopy Code
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2002-2012 GrapeCity, Inc. All Rights Reserved.