Defines an annotation line object.
Object Model
Syntax
Example
This example creates a new line object from 100, 200 to 400, 600 pixels with red pen and then adds it to a container.
Visual Basic | Copy Code |
---|
Private Sub AnnLineObject_AnnLineObject(ByVal container As AnnContainer)
Dim line As AnnLineObject = New AnnLineObject()
line.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
line.StartPoint = New AnnPoint(100, 200, AnnUnit.Pixel)
line.EndPoint = New AnnPoint(400, 600, AnnUnit.Pixel)
container.Objects.Add(line)
End Sub |
C# | Copy Code |
---|
private void AnnLineObject_AnnLineObject(AnnContainer container) { AnnLineObject line = new AnnLineObject(); line.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel)); line.StartPoint = new AnnPoint(100, 200, AnnUnit.Pixel); line.EndPoint = new AnnPoint(400, 600, AnnUnit.Pixel); container.Objects.Add(line); } |
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