Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.3.29
|
Leadtools.Annotations.Automation Assembly > Leadtools.Annotations.Automation Namespace > AnnAutomation Class : CurrentDesignerChanged Event |
public event EventHandler CurrentDesignerChanged
'Declaration
Public Event CurrentDesignerChanged As EventHandler
public event EventHandler CurrentDesignerChanged
public void addCurrentDesignerChangedListener(AnnEventListener listener) public void removeCurrentDesignerChangedListener(AnnEventListener listener)
add_CurrentDesignerChanged(function(sender, e)) remove_CurrentDesignerChanged(function(sender, e))
Designer Base Class | Notes |
---|---|
null |
(Design and Run user mode) No designer is currently active. |
AnnDrawDesigner |
(Design user mode) The AnnAutomation is currently drawing or about to draw a new object. |
AnnEditDesigner |
(Design user mode) One or more objects are currently being edited or are about to be edited. |
AnnRunDesigner |
(Run user mode) An object is currently being run or about to be run. |
This event allows you to hook into the current designer and change or monitor its status while it is running. For example, you can determine if CurrentDesigner is a Leadtools.Annotations.Designers.AnnDrawDesigner derived class and subscribe to the AnnDrawDesigner.Draw event and so forth.
Alternatively, you can subscribe to this AnnAutomation's object Draw, Edit or Run events directly. This object will hook these events to the corresponding designer event automatically.