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 |
---|
Public Sub AnnAutomationManager_FindObject(ByVal manager As AnnAutomationManager)
' fine the line automation object
Dim obj As AnnAutomationObject = manager.FindObject(AnnAutomationManager.LineObjectId)
If Not obj Is Nothing Then
obj.Object.Pen = New AnnPen(Color.Blue, New AnnLength(1, AnnUnit.Pixel))
End If
End Sub |
C# | Copy Code |
---|
public void AnnAutomationManager_FindObject(AnnAutomationManager manager)
{
// fine the line automation object
AnnAutomationObject obj = manager.FindObject(AnnAutomationManager.LineObjectId);
if(obj != null)
obj.Object.Pen = new AnnPen(Color.Blue, new AnnLength(1, AnnUnit.Pixel));
} |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7
See Also