private void Form1_Load(object sender, EventArgs e)
{
FarPoint.Win.Spread.CellType.TextCellType tcell = new FarPoint.Win.Spread.CellType.TextCellType();
tcell.MaxLength = 5;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = tcell;
}
private void button1_Click(object sender, EventArgs e)
{
// 値を検証せずにセットします
fpSpread1.ActiveSheet.SetValue(0, 0, "abcdefg", false);
}
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim tcell As New FarPoint.Win.Spread.CellType.TextCellType()
tcell.MaxLength = 5
FpSpread1.ActiveSheet.Cells(0, 0).CellType = tcell
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
' 値を検証せずにセットします
FpSpread1.ActiveSheet.SetValue(0, 0, "abcdefg", False)
End Sub