作成日: 2017/05/22 最終更新日: 2017/05/22
文書種別
使用方法
詳細
テキスト型セルのPasswordプロパティにて、パスワード入力が行えます。
<注意>
◎サンプルコード(VB)
◎サンプルコード(C#)
<注意>
PasswordプロパティをTrueに設定したセルが空ではない(初期値を持つ)場合、最初にセルを編集状態にした時に初期値がクリアされます。セルに何も入力せず(編集しないで)SPREADを更新すると編集前のデータが再設定されます。
◎サンプルコード(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.Password = True
FpSpread1.ActiveSheetView.Columns(1).CellType = tc
End Sub
If IsPostBack Then
Return
End If
Dim tc As New FarPoint.Web.Spread.TextCellType
tc.Password = True
FpSpread1.ActiveSheetView.Columns(1).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.Password = true;
FpSpread1.ActiveSheetView.Columns[1].CellType = tc;
}
{
if (IsPostBack)
{
return;
}
FarPoint.Web.Spread.TextCellType tc = new FarPoint.Web.Spread.TextCellType();
tc.Password = true;
FpSpread1.ActiveSheetView.Columns[1].CellType = tc;
}
旧文書番号
40362