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




Gets or sets a value indicating whether this AnnAutomation is active.

Syntax

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

Return Value

true if this AnnAutomation is active; false otherwise.

Example

For an example, refer to AnnAutomationManager.

Remarks

The collection of AnnAutomation objects inside a AnnAutomationManager should have one AnnAutomation object active at any time. The active AnnAutomation object is the object to which all user interface actions are directed.

If the automated annotation application has only one AnnAutomation object, it should set the Active property of this AnnAutomation to true upon initilization. No further changes are necessary. For example, you can subscribe to the MdiChildActivate event of the main form in your application and set the Active property to true for the AnnAutomation object associated with the currently active MDI child form.

If the automated annotation application has more than one AnnAutomation, it should set the Active property of the AnnAutomation attached to the currently active form to true.

Setting the Active value of one AnnAutomation in the Automations property to true, will cause the Active property of all other AnnAutomation objects inside this collection to be set to false.

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