Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
CanUndo Property
See Also 
Leadtools.Annotations Namespace > AnnAutomation Class : CanUndo Property




Gets a value indicating whether the user can undo the previous operation performed in this AnnAutomation.

Syntax

Visual Basic (Declaration) 
Public Overridable ReadOnly Property CanUndo As Boolean
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim value As Boolean
 
value = instance.CanUndo
C# 
public virtual bool CanUndo {get;}
Managed Extensions for C++ 
public: __property virtual bool get_CanUndo();
C++/CLI 
public:
virtual property bool CanUndo {
   bool get();
}

Return Value

true if the user can undo the previous operation performed in this AnnAutomation; otherwise, false.

Example

For an example, refer to UndoRedoChanged.

Remarks

(Read only) If this property value is true, you can call Undo to undo the previous operation performed in this AnnAutomation. You can use this property to update your user interface; for example, to enable/disable an Undo menu item.

Use the UndoCapacity property to get or set the number of user actions that can be reversed using the Undo method, or re-applied using the Redo method. The default for the UndoCapacity property is 10 actions.

For more information, refer to Undoing Automation Operations.

Please note that the Undo operation does not work for the Realize operation that has been performed with the Realize method to realize the entire image.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features