Defines an annotation pointer object.
Object Model
Syntax
Example
This example adds a new pointer object to a container.
Visual Basic | Copy Code |
---|
Private Sub AnnPointerObject_AnnPointerObject(ByVal container As AnnContainer)
Dim pointer As AnnPointerObject = New AnnPointerObject()
pointer.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
pointer.StartPoint = New AnnPoint(100, 100, AnnUnit.Pixel)
pointer.EndPoint = New AnnPoint(200, 200, AnnUnit.Pixel)
container.Objects.Add(pointer)
End Sub |
C# | Copy Code |
---|
private void AnnPointerObject_AnnPointerObject(AnnContainer container) { AnnPointerObject pointer = new AnnPointerObject(); pointer.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel)); pointer.StartPoint = new AnnPoint(100, 100, AnnUnit.Pixel); pointer.EndPoint = new AnnPoint(200, 200, AnnUnit.Pixel); container.Objects.Add(pointer); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also