Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread.CellType Namespace / CharacterSet Enumeration
Example Example

In This Topic
    CharacterSet Enumeration
    In This Topic
    Specifies the character set for valid cell contents.
    Public Enum CharacterSet 
       Inherits System.Enum
    Dim instance As CharacterSet
    public enum CharacterSet : System.Enum 
    Alpha Accepts letters (alphabetic characters) only
    AlphaNumeric Accepts letters (alphabetic characters) or numbers (numeric characters) only
    Ascii Accepts any of the ASCII characters
    Numeric Accepts numbers (numeric characters) only
    This example creates a text cell.
    FarPoint.Win.Spread.CellType.TextCellType txtct = new FarPoint.Win.Spread.CellType.TextCellType();
    txtct.CharacterSet = FarPoint.Win.Spread.CellType.CharacterSet.AlphaNumeric;
    fpSpread1.ActiveSheet.Cells[0, 0].CellType = txtct;
    Dim txtct As New FarPoint.Win.Spread.CellType.TextCellType()
    txtct.CharacterSet = FarPoint.Win.Spread.CellType.CharacterSet.AlphaNumeric
    FpSpread1.ActiveSheet.Cells(0, 0).CellType = txtct
    Inheritance Hierarchy


    See Also