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