Spread Windows Forms 9.0 Product Documentation
CharacterSet Enumeration
Example Example 


Specifies the character set for valid cell contents.
Syntax
'Declaration
 
Public Enum CharacterSet 
   Inherits System.Enum
'Usage
 
Dim instance As CharacterSet
public enum CharacterSet : System.Enum 
Members
MemberDescription
AlphaAccepts letters (alphabetic characters) only
AlphaNumericAccepts letters (alphabetic characters) or numbers (numeric characters) only
AsciiAccepts any of the ASCII characters
NumericAccepts numbers (numeric characters) only
Example
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

System.Object
   System.ValueType
      System.Enum
         FarPoint.Win.Spread.CellType.CharacterSet

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

FarPoint.Win.Spread.CellType Namespace
CharacterSet Property (ComboBoxCellType Class)
CharacterSet Property (TextCellType Class)
CharacterSet Property (GeneralEditor Class)

User-Task Documentation

Setting a Text Cell

 

 


Copyright © GrapeCity, inc. All rights reserved.