Spread Windows Forms 9.0 Product Documentation
CustomMaskCharacters Property
Example 


Gets or sets the custom characters for the mask.
Syntax
'Declaration
 
Public Overridable Property CustomMaskCharacters As String()
'Usage
 
Dim instance As MaskCellType
Dim value() As String
 
instance.CustomMaskCharacters = value
 
value = instance.CustomMaskCharacters
public virtual string[] CustomMaskCharacters {get; set;}

Property Value

String array with custom mask characters
Example
This example sets a custom mask.
FarPoint.Win.Spread.CellType.MaskCellType mask =new FarPoint.Win.Spread.CellType.MaskCellType();
        string[] test;
        test = new string[] {"t", "e", "s", "t"};
        mask.CustomMaskCharacters = test;
        //  0 is the first character in the array, 1 is the second character, etc...
        mask.Mask = "0120";
        fpSpread1.Sheets[0].Cells[0, 0].CellType = mask;
Dim test As String()
        test = New String() {"t", "e", "s", "t"}
        Dim mask As New FarPoint.Win.Spread.CellType.MaskCellType()
        mask.CustomMaskCharacters = test
        '  0 is the first character in the array, 1 is the second character, etc...
        mask.Mask = "0120"
        FpSpread1.Sheets(0).Cells(0, 0).CellType = mask
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

MaskCellType Class
MaskCellType Members

 

 


Copyright © GrapeCity, inc. All rights reserved.