Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnLineObject Class
See Also  Members   Example 
Leadtools.Windows.Annotations Namespace : AnnLineObject Class





Defines an annotation line object.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnLineObject 
   Inherits AnnObjectBase
Visual Basic (Usage)Copy Code
Dim instance As AnnLineObject
C# 
[SerializableAttribute()]
public class AnnLineObject : AnnObjectBase 
C++/CLI 
[SerializableAttribute()]
public ref class AnnLineObject : public AnnObjectBase 
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 BasicCopy 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

The line annotation object is a simple line that has a start point, an end point and a stroke. For more information about the line annotation object refer to AnnLineObject for WPF. For more information about the automated line annotation object, refer to WPF Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Annotations.AnnObjectBase
                     Leadtools.Windows.Annotations.AnnLineObject
                        Leadtools.Windows.Annotations.AnnPointerObject
                        Leadtools.Windows.Annotations.AnnRulerObject

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

AnnLineObject requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.