SPREAD for ASP.NET 8.0J サンプルコード集
入力できる最大文字数を設定する

テキスト型セルのMaxLengthプロパティに、ユーザーが入力できる最大文字数を設定できます。

実行例:

//最大文字数を設定します
FpSpread1.Cells[0, 1].CellType = new TextCellType() { MaxLength = 10 };
'最大文字数を設定します
FpSpread1.Cells(0, 1).CellType = New TextCellType() With {.MaxLength = 10}

 

 


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