private void Form1_Load(object sender, EventArgs e)
{
FarPoint.Win.Spread.CellType.TextCellType txt = new FarPoint.Win.Spread.CellType.TextCellType();
// 最大入力可能文字数を設定します
txt.MaxLength = 10;
fpSpread1.Sheets[0].Cells[1, 1].CellType = txt;
fpSpread1.Sheets[0].Cells[1, 1].Text = "text cell.";
}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim txt As New FarPoint.Win.Spread.CellType.TextCellType()
' 最大入力可能文字数を設定します
txt.MaxLength = 10
FpSpread1.Sheets(0).Cells(1, 1).CellType = txt
FpSpread1.Sheets(0).Cells(1, 1).Text = "text cell."
End Sub