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 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also