Defines an annotation line object.
Object Model
Syntax
XAML Object Element Usage | |
---|
<AnnLineObject .../> |
XAML Object Element Usage | |
---|
<AnnLineObject .../> |
Example
For XAML example, refer to AnnGroupObject.
This example creates a new line object from 100, 200 to 400, 600 pixels with red stroke 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.Stroke = Brushes.Red
line.StrokeThickness = 1.0
line.X1 = 100
line.Y1 = 200
line.X2 = 400
line.Y2 = 600
container.Children.Add(line)
End Sub |
C# | Copy Code |
---|
private void AnnLineObject_AnnLineObject(AnnContainer container) { AnnLineObject line = new AnnLineObject(); line.Stroke = Brushes.Red; line.StrokeThickness = 1.0; line.X1 = 100; line.Y1 = 200; line.X2 = 400; line.Y2 = 600; container.Children.Add(line); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also