←Select platform

CurrentDesigner Property

Summary

Gets the current working designer.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public AnnDesigner CurrentDesigner { get; } 
Public ReadOnly Property CurrentDesigner As Leadtools.Annotations.Designers.AnnDesigner 
public Leadtools.Annotations.Designers.AnnDesigner CurrentDesigner {get;} 
@property (nonatomic,retain,readonly) LTAnnDesigner* currentDesigner; 
public AnnDesigner getCurrentDesigner() 
 get_CurrentDesigner();  
public:  
   property AnnDesigner^ CurrentDesigner 
   { 
      AnnDesigner^ get() 
   } 

Property Value

The current working AnnDesigner derived object.

Remarks

At any given time, the AnnAutomation object can have a working AnnDesigner derived object as follows:

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 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 a Leadtools.Annotations.Designers.AnnDrawDesigner derived class and subscribe to the AnnDrawDesigner.Draw event and so forth.

Alternatively, you can subscribe to this AnnAutomation object's Draw, Edit or Run events directly. This object will hook these events to the corresponding designer event automatically.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Annotations.Automation Assembly