MESCIUS SPREAD for Windows Forms 17.0J
MaxLineCount プロパティ

入力できる最大の行数を取得または設定します。
構文
'Declaration
 
Public Property MaxLineCount As Integer
public int MaxLineCount {get; set;}

プロパティ値

コントロールの最適な高さを示す<b>int</b>値。
既定値は <b>zero</b> です。
解説
<b>MaxLineCount</b>は、<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.CountWrappedLine" />プロパティが<see langword="true" />で、なおかつ<see cref="P:GrapeCity.Win.Spread.InputMan.CellType.GcTextBox.Muilitline" />プロパティも<see langword="true" />であるときに、入力できるテキストの行数を制限します。このプロパティのデフォルト値はゼロで、制限がないことを意味します。
次のサンプルコードは、MaxLineCount プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
inputcell.Multiline = true;
inputcell.MaxLineCount = 3;
fpSpread1.Sheets[0].Cells[0, 0].CellType = inputcell;
Dim inputcell As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
inputcell.Multiline = True
inputcell.MaxLineCount = 3
fpSpread1.Sheets(0).Cells(0, 0).CellType = inputcell
参照

GcTextBoxCellType クラス
GcTextBoxCellType メンバ

 

 


© MESCIUS inc. All rights reserved.