Spread Windows Forms 6.0 Product Documentation
CustomMaskCharacters Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > MaskCellType Class : CustomMaskCharacters Property


Glossary Item Box

Gets or sets the custom characters for the mask.

Syntax

Visual Basic (Declaration) 
Public Overridable Property CustomMaskCharacters As String()
Visual Basic (Usage)Copy Code
Dim instance As MaskCellType
Dim value() As String
 
instance.CustomMaskCharacters = value
 
value = instance.CustomMaskCharacters
C# 
public virtual string[] CustomMaskCharacters {get; set;}

Property Value

String array with custom mask characters

Example

This example sets a custom mask.
C#Copy Code
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;
Visual BasicCopy Code
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 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.