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



This is the base class for all annotation objects.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public MustInherit Class AnnObjectBase 
   Inherits FrameworkElement
Visual Basic (Usage)Copy Code
Dim instance As AnnObjectBase
C# 
[SerializableAttribute()]
public abstract class AnnObjectBase : FrameworkElement 
C++/CLI 
[SerializableAttribute()]
public ref class AnnObjectBase abstract : public FrameworkElement 

Example

This example displays the rotate angle of an AnnObjectBase.

Visual BasicCopy Code
Public Sub AnnObject_AnnObject(ByVal container As AnnContainer)
   For Each obj As AnnObjectBase In container.Children
      Dim s As String = String.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Header, obj.Hyperlink)
      MessageBox.Show(s)
   Next obj
End Sub
C#Copy Code
public void AnnObject_AnnObject(AnnContainer container) 

   foreach(AnnObjectBase obj in container.Children) 
   { 
      string s = string.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Header, obj.Hyperlink); 
      MessageBox.Show(s); 
   } 
}

Remarks

The AnnObjectBase class provides all the basic functionality common to all LEADTOOLS annotation objects.

The AnnObjectBase is an abstract class, you cannot instantiate objects of this class directly.

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.AnnCrossProductObject
                     Leadtools.Windows.Annotations.AnnGroupObject
                     Leadtools.Windows.Annotations.AnnLineObject
                     Leadtools.Windows.Annotations.AnnPointObject
                     Leadtools.Windows.Annotations.AnnPolylineObject
                     Leadtools.Windows.Annotations.AnnProtractorObject
                     Leadtools.Windows.Annotations.AnnRectangleObject

Requirements

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

See Also

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