The AnnCurveObject Class supports WPF/Silverlight.
The AnnCurveObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines an annotation curve object.
Supported in Silverlight, Windows Phone 7
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 System.Windows.Point(100, 100))
curve.Points.Add(New System.Windows.Point(200, 100))
curve.Points.Add(New System.Windows.Point(200, 200))
curve.Points.Add(New System.Windows.Point(100, 300))
curve.Stroke = Colors.Red
curve.StrokeThickness = 1.0
curve.Tension = 1
container.Children.Add(curve)
End Sub |
C# | Copy Code |
---|
private void AnnCurveObject_AnnCurveObject(AnnContainer container)
{
AnnCurveObject curve = new AnnCurveObject();
curve.Points.Add(new Point(100, 100));
curve.Points.Add(new Point(200, 100));
curve.Points.Add(new Point(200, 200));
curve.Points.Add(new Point(100, 300));
curve.Stroke = Colors.Red;
curve.StrokeThickness = 1.0;
curve.Tension = 1;
container.Children.Add(curve);
} |
SilverlightCSharp | Copy Code |
---|
private void AnnCurveObject_AnnCurveObject(AnnContainer container)
{
AnnCurveObject curve = new AnnCurveObject();
curve.Points.Add(new Point(100, 100));
curve.Points.Add(new Point(200, 100));
curve.Points.Add(new Point(200, 200));
curve.Points.Add(new Point(100, 300));
curve.Stroke = Colors.Red;
curve.StrokeThickness = 1.0;
curve.Tension = 1;
container.Children.Add(curve);
} |
SilverlightVB | Copy Code |
---|
Private Sub AnnCurveObject_AnnCurveObject(ByVal container As AnnContainer)
Dim curve As AnnCurveObject = New AnnCurveObject()
curve.Points.Add(New Point(100, 100))
curve.Points.Add(New Point(200, 100))
curve.Points.Add(New Point(200, 200))
curve.Points.Add(New Point(100, 300))
curve.Stroke = Colors.Red
curve.StrokeThickness = 1.0
curve.Tension = 1
container.Children.Add(curve)
End Sub |
XAML | Copy Code |
---|
<Window x:Class="WPFSamples.AnnCurveObject" Title="Leadtools.Windows.Annotations" Height="600" Width="800" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations">
<Leadtools_Windows_Annotations:AnnCurveObject Stroke="Blue" StrokeThickness="3.0" Tension="0.5" Points="100,100 175, 125, 25,150 175,175 100,200" Header="Curve Object" />
</Window> |
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