作成日: 2017/06/15 最終更新日: 2017/06/15
文書種別
使用方法
詳細
テキスト型セルのMaxLength プロパティを使用することで、入力できる最大文字数を指定することができます。
◎サンプルコード(VB)
◎サンプルコード(C#)
◎サンプルコード(VB)
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
If IsPostBack Then
Return
End If
Dim tc As New FarPoint.Web.Spread.TextCellType
tc.MaxLength = 3
FpSpread1.ActiveSheetView.Columns(0).CellType = tc
End Sub
If IsPostBack Then
Return
End If
Dim tc As New FarPoint.Web.Spread.TextCellType
tc.MaxLength = 3
FpSpread1.ActiveSheetView.Columns(0).CellType = tc
End Sub
◎サンプルコード(C#)
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.TextCellType tc = new FarPoint.Web.Spread.TextCellType();
tc.MaxLength = 3;
FpSpread1.ActiveSheetView.Columns[0].CellType = tc;
}
{
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.TextCellType tc = new FarPoint.Web.Spread.TextCellType();
tc.MaxLength = 3;
FpSpread1.ActiveSheetView.Columns[0].CellType = tc;
}
旧文書番号
40414