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




Gets or sets the current automation object id.

Syntax

Visual Basic (Declaration) 
Public Property CurrentObjectId As Integer
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Integer
 
instance.CurrentObjectId = value
 
value = instance.CurrentObjectId
C# 
public int CurrentObjectId {get; set;}
Managed Extensions for C++ 
public: __property int get_CurrentObjectId();
public: __property void set_CurrentObjectId( 
   int value
);
C++/CLI 
public:
property int CurrentObjectId {
   int get();
   void set (int value);
}

Return Value

The current automation object id.

Example

This example sets the line object as the current automation object.

Visual BasicCopy Code
Public Sub AnnAutomationManager_CurrentObjectId(ByVal manager As AnnAutomationManager)
   ' if you are using the automation toolbar, notice the line button gets selected as well
   manager.CurrentObjectId = AnnAutomationManager.LineObjectId
End Sub
C#Copy Code
public void AnnAutomationManager_CurrentObjectId(AnnAutomationManager manager) 

   // if you are using the automation toolbar, notice the line button gets selected as well 
   manager.CurrentObjectId = AnnAutomationManager.LineObjectId; 
}

Remarks

The current automation object id is the Id of the AnnAutomationObject currently selected in the ToolBar. This object is the "active" object to be drawn on the current active AnnAutomation. You can change the value of this property programmatically. It also changes when the user clicks on the buttons of the automation ToolBar.

The CurrentObjectIdChanged event is fired when this property is changed

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