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