PowerTools SPREAD for Windows Forms 10.0J
StopCellEditing メソッド (FpSpread)


セルの編集を終了します。
構文
'Declaration
 
Public Function StopCellEditing() As Boolean
'使用法
 
Dim instance As FpSpread
Dim value As Boolean
 
value = instance.StopCellEditing()
public bool StopCellEditing()

戻り値の型

Boolean:成功した場合は True、それ以外の場合は False
解説
このメソッドはセルの編集を終了して、セルの編集モードを解除します。
次のサンプルコードは、セルの編集を終了します。
FarPoint.Win.Spread.FpSpread fpSpread1 = new FarPoint.Win.Spread.FpSpread();
FarPoint.Win.Spread.SheetView shv = new FarPoint.Win.Spread.SheetView();
DialogResult dlg;
fpSpread1.Location = new Point(10, 10);
fpSpread1.Height = 200;
fpSpread1.Width = 400;
Controls.Add(fpSpread1);
fpSpread1.Sheets.Add(shv);
fpSpread1.EditMode = true;
dlg = MessageBox.Show("Do you want to stop editing the cell??", "StopCellEditing", MessageBoxButtons.YesNo);
if (dlg == DialogResult.Yes)
{
fpSpread1.StopCellEditing();
}
Dim fpSpread1 As New FarPoint.Win.Spread.FpSpread()
Dim shv As New FarPoint.Win.Spread.SheetView()
Dim dlg As DialogResult
fpSpread1.Location = New Point(10, 10)
fpSpread1.Height = 200
fpSpread1.Width = 400
Controls.Add(fpSpread1)
fpSpread1.Sheets.Add(shv)
fpSpread1.EditMode = True
dlg = MessageBox.Show("Do you want to stop editing the cell??", "StopCellEditing", MessageBoxButtons.YesNo)
If dlg = DialogResult.Yes Then
fpSpread1.StopCellEditing()
End If
参照

FpSpread クラス
FpSpread メンバ
StartCellEditing メソッド

開発者ガイド

編集モード

 

 


© 2004-2017, GrapeCity inc. All rights reserved.