Finds the
AnnAutomationObject associated with a certain ID.
Syntax
Example
This example changes the line color of new line automation objects to blue.
Visual Basic | Copy Code |
---|
Private Sub AnnAutomationManager_FindObject(ByVal manager As AnnAutomationManager)
Dim autObj As AnnAutomationObject = manager.FindObject(AnnAutomationManager.LineObjectId)
If Not autObj Is Nothing Then
autObj.Object.Stroke = Brushes.Blue
autObj.Object.StrokeThickness = 2.0
End If
End Sub |
C# | Copy Code |
---|
private void AnnAutomationManager_FindObject(AnnAutomationManager manager) { // fine the line automation object AnnAutomationObject autObj = manager.FindObject(AnnAutomationManager.LineObjectId); if(autObj != null) { autObj.Object.Stroke = Brushes.Blue; autObj.Object.StrokeThickness = 2.0; } } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also