Atalasoft
Welcome to Atalasoft Community Sign in | Join | Help
in

Problem with Annotation selection and UndoManager

Last post 25 Jan 2008, 5:43 PM by Glenn. 1 replies.
Sort Posts: Previous Next
  •  25 Jan 2008, 2:30 AM 13026

    Problem with Annotation selection and UndoManager

    Hi,

               I am using  Annotation objects,is there any way to check which Annotation object is Undone when we use UndoManager.Undo() method.

              How should I select any Annotation I want through code, is there any method for that.Please reply soon.

    Thanks

    -Sandy 

     

     

  •  25 Jan 2008, 5:43 PM 13039 in reply to 13026

    Re: Problem with Annotation selection and UndoManager

    To select an annotation through code, set the annotation's Selected property to true.

    If you add an event handler for the UndoManager.UndoRequest event it will be raised when Undo is called.  The event args provides an AnnotationUndo class that tells you which object, usually an annotation, is affected in the Item property.  It's possible that property will not be an annotation, so be sure to verify the object type.


    Glenn Chittenden Jr.
    Atalasoft Development Team
View as RSS news feed in XML