PowerTools SPREAD for Windows Forms 8.0J
LengthUnit 列挙体


文字数のカウント方法を指定します。
構文
'Declaration
 
Public Enum LengthUnit 
   Inherits System.Enum
'使用法
 
Dim instance As LengthUnit
public enum LengthUnit : System.Enum 
メンバ
メンバ説明
Byte文字列の長さを計算するときの計算単位がバイトであることを示します。
Char文字列の長さを計算するときの計算単位が.NET文字であることを示します。
TextElement文字列の長さを計算するときの計算単位がTextElmentであることを示します。
次のサンプルコードは、LengthUnit 列挙体を使用します。
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
継承階層

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

参照

GrapeCity.Win.Spread.InputMan.CellType 名前空間

 

 


© 2004-2015, GrapeCity inc. All rights reserved.