Spread Windows Forms 11.0 Product Documentation
LengthUnit Enumeration
Example Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace : LengthUnit Enumeration
Defines the LengthUnit enumeration.
Syntax
'Declaration
 
Public Enum LengthUnit 
   Inherits System.Enum
'Usage
 
Dim instance As LengthUnit
public enum LengthUnit : System.Enum 
Members
MemberDescription
ByteIndicates the calculational unit is a byte when calculating the length of the string.
CharIndicates the calculational unit is a .Net character when calculating the length of the string.
TextElementIndicates the calculational unit is a TextElment when calculating the length of the string.
Example
This example uses the LengthUnit enumeration.
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
inputcell1.MaxLengthUnit = GrapeCity.Win.Spread.InputMan.CellType.LengthUnit.Char;
inputcell1.MaxLength = 10;
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType
inputcell1.MaxLengthUnit = GrapeCity.Win.Spread.InputMan.CellType.LengthUnit.Char
inputcell1.MaxLength = 10
fpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Win.Spread.InputMan.CellType.LengthUnit

See Also

Reference

GrapeCity.Win.Spread.InputMan.CellType Namespace