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

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

実行例:

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

 

 


© MESCIUS inc. All rights reserved.