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




Occurs when the current designer has changed.

Syntax

Visual Basic (Declaration) 
Public Event CurrentDesignerChanged() As EventHandler
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomation
Dim handler As EventHandler
 
AddHandler instance.CurrentDesignerChanged, handler
C# 
public event EventHandler CurrentDesignerChanged()
Managed Extensions for C++ 
public: __event EventHandler* CurrentDesignerChanged();
C++/CLI 
public:
event EventHandler^ CurrentDesignerChanged();

Example

For an example, refer to CurrentDesigner.

Remarks

At any given time, the AnnAutomation can have a working AnnDesigner derived object as follows:
Designer Base ClassNotes
null (Nothing in Visual Basic)(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 property 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 an AnnDrawDesigner derived class and subscribe to the Draw event and so forth.

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