GrapeCity ActiveReports for .NET 12.0J
UndoCount プロパティ
使用例 

Undo可能なアクションの数を返します。
構文
'宣言
 
Public ReadOnly Property UndoCount As Integer
public int UndoCount {get;}

プロパティ値

整数型。
使用例
If(this.ardMain.UndoManager.UndoCount == 0 )
{
    this.tSTDUndo.Enabled = False;
    this.mnuEditUndo.Enabled = False;
}
Else
{
    this.tSTDUndo.Enabled = True;
    this.mnuEditUndo.Enabled = True;
}
If Me.ardMain.UndoManager.UndoCount = 0 Then
    Me.tSTDUndo.Enabled = False
    Me.mnuEditUndo.Enabled = False
Else
    Me.tSTDUndo.Enabled = True
    Me.mnuEditUndo.Enabled = True
End If
参照

関連項目

UndoManager クラス
UndoManager メンバ

 

 


Copyright © 2003 GrapeCity inc. All rights reserved.