The CurrentObjectId Property supports WPF/Silverlight.
The CurrentObjectId Property is available in LEADTOOLS Document and Medical Imaging toolkits.
Gets or sets the current automation object ID. Supported in Silverlight, Windows Phone 7Visual 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;} |
Property Value
The current automation object ID.This example sets the line object as the current automation object.
Visual Basic | Copy Code |
---|---|
Private 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 |
---|---|
private void AnnAutomationManager_CurrentObjectId(AnnAutomationManager manager) { // if you are using the automation toolbar, notice the line button gets selected as well manager.CurrentObjectId = AnnAutomationManager.LineObjectId; } |
SilverlightCSharp | Copy Code |
---|---|
private void AnnAutomationManager_CurrentObjectId(AnnAutomationManager manager) { // if you are using the automation toolbar, notice the line button gets selected as well manager.CurrentObjectId = AnnAutomationManager.LineObjectId; } |
SilverlightVB | Copy Code |
---|---|
Private 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 |
The current automation object ID is the AnnAutomationObject.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
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)