LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

Active Property






Gets or sets a value indicating whether this AnnAutomation is active.
Syntax
public virtual bool Active {get; set;}
'Declaration
 
Public Overridable Property Active As Boolean
'Usage
 
Dim instance As AnnAutomation
Dim value As Boolean
 
instance.Active = value
 
value = instance.Active
public virtual bool Active {get; set;}
 get_Active();
set_Active(value);
public:
virtual property bool Active {
   bool get();
   void set (    bool value);
}

Property Value

true if this AnnAutomation is active; false otherwise.
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 System.Windows.Forms.Form.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 AnnAutomationManager.Automations property to true, will cause the Active property of all other AnnAutomation objects inside this collection to be set to false.

Example
For an example, refer to AnnAutomationManager.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomation Class
AnnAutomation Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.