The AnnLineObject Class supports WPF/Silverlight.
The AnnLineObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines an annotation line object.
Supported in Silverlight, Windows Phone 7
Object Model
Syntax
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 = Colors.Red
line.StrokeThickness = 1.0
line.Start = New Point(100, 100)
line.End = New Point(400, 600)
container.Children.Add(line)
End Sub |
C# | Copy Code |
---|
private void AnnLineObject_AnnLineObject(AnnContainer container)
{
AnnLineObject line = new AnnLineObject();
line.Stroke = Colors.Red;
line.StrokeThickness = 1.0;
line.Start = new Point(100, 200);
line.End = new Point(400, 600);
container.Children.Add(line);
} |
SilverlightCSharp | Copy Code |
---|
private void AnnLineObject_AnnLineObject(AnnContainer container)
{
AnnLineObject line = new AnnLineObject();
line.Stroke = Colors.Red;
line.StrokeThickness = 1.0;
line.Start = new Point(100, 200);
line.End = new Point(400, 600);
container.Children.Add(line);
} |
SilverlightVB | Copy Code |
---|
Private Sub AnnLineObject_AnnLineObject(ByVal container As AnnContainer)
Dim line As AnnLineObject = New AnnLineObject()
line.Stroke = Colors.Red
line.StrokeThickness = 1.0
line.Start = New Point(100, 200)
line.End = New Point(400, 600)
container.Children.Add(line)
End Sub |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
See Also