次のサンプルコードは、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