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;} |
C++/CLI | |
---|
public:
property int CurrentObjectId {
int get();
void set (int value);
} |
XAML Attributes Usage | |
---|
<object CurrentObjectId=int .../> |
XAML Attributes Usage | |
---|
<object CurrentObjectId=int .../> |
Return Value
The current automation object ID.
Example
This example sets the line object as the current automation object.
Visual Basic | Copy Code |
---|
Private Sub AnnAutomationManager_CurrentObjectId(ByVal manager As AnnAutomationManager)
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; } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also