public int MaxLength {get; set;}
'Declaration
Public Property MaxLength As Integer
'使用法
Dim instance As GcTextBoxCellType
Dim value As Integer
instance.MaxLength = value
value = instance.MaxLength
プロパティ値
コントロールに入力できる文字数またはバイト数(文字数とバイト数のどちらであるかは
LengthAsByteプロパティによって決定されます)。
デフォルト値は
ゼロです。
次のサンプルコードは、MaxLength プロパティを使用します。
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