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 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also