GrapeCity.Win.PluginInputMan アセンブリ > GrapeCity.Win.Spread.InputMan.CellType 名前空間 > GcTextBoxCellType クラス : MaxLength プロパティ |
'Declaration Public Property MaxLength As Integer
'使用法 Dim instance As GcTextBoxCellType Dim value As Integer instance.MaxLength = value value = instance.MaxLength
public int MaxLength {get; set;}
例外 | 説明 |
---|---|
System.ArgumentOutOfRangeException | 値がゼロ未満の場合は、ArgumentOutOfRangeException がスローされます。 |
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