GrapeCity SPREAD for Windows Forms 11.0J
Undo() メソッド


PerformUndoAction で実行した最後のアクションを取り消して、繰り返しリストに追加します。
構文
'Declaration
 
Public Overloads Function Undo() As Boolean
'使用法
 
Dim instance As UndoManager
Dim value As Boolean
 
value = instance.Undo()
public bool Undo()
次のサンプルコードは、Undoメソッドを使用します。
//Type in a cell, then click the undo and redo buttons
private void button1_Click(object sender, EventArgs e)
        {
           fpSpread1.UndoManager.Undo();
            
        }

private void button2_Click(object sender, EventArgs e)
        {
            
            fpSpread1.UndoManager.Redo();
        }
'Type in a cell, then click the undo and redo buttons
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        FpSpread1.UndoManager.Undo()
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        FpSpread1.UndoManager.Redo()
    End Sub
参照

UndoManager クラス
UndoManager メンバ
オーバーロード一覧

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.