LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
AnnObject Class
See Also  Members  
Leadtools.Windows.Annotations Namespace : AnnObject Class



This is the base class for all annotation objects. Supported in Silverlight, Windows Phone 7

Object Model

AnnObject Class

Syntax

Visual Basic (Declaration) 
Public MustInherit Class AnnObject 
   Inherits System.Windows.DependencyObject
   Implements IAnnHeaderIAnnObject 
Visual Basic (Usage)Copy Code
Dim instance As AnnObject
C# 
public abstract class AnnObject : System.Windows.DependencyObject, IAnnHeaderIAnnObject  
C++/CLI 
public ref class AnnObject abstract : public System.Windows.DependencyObject, IAnnHeaderIAnnObject  

Example

This example displays the rotate angle of an AnnObject.

Visual BasicCopy Code
Public Sub AnnObject_AnnObject(ByVal container As AnnContainer)
   For Each obj As AnnObject 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 (AnnObject obj in container.Children)
   {
      string s = string.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Header, obj.Hyperlink);
      MessageBox.Show(s);
   }
}
SilverlightCSharpCopy Code
public void AnnObject_AnnObject(AnnContainer container)
{
   foreach (AnnObject obj in container.Children)
   {
      string s = string.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Header, obj.Hyperlink);
      MessageBox.Show(s);
   }
}
SilverlightVBCopy Code
Public Sub AnnObject_AnnObject(ByVal container As AnnContainer)
   For Each obj As AnnObject 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

Remarks

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

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

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

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