The AnnObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
This is the base class for all annotation objects.Visual Basic (Declaration) | |
---|---|
<SerializableAttribute()> Public MustInherit Class AnnObject Inherits AnnDrawable Implements ICloneable, IDisposable, ISerializable |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AnnObject |
C# | |
---|---|
[SerializableAttribute()] public abstract class AnnObject : AnnDrawable, ICloneable, IDisposable, ISerializable |
C++/CLI | |
---|---|
[SerializableAttribute()] public ref class AnnObject abstract : public AnnDrawable, ICloneable, IDisposable, ISerializable |
This example displays the rotate angle of an AnnObject.
Visual Basic | Copy Code |
---|---|
Public Sub AnnObject_AnnObject(ByVal container As AnnContainer) For Each obj As AnnObject In container.Objects Dim s As String = String.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Name, obj.Hyperlink) MessageBox.Show(s) Next obj End Sub |
C# | Copy Code |
---|---|
public void AnnObject_AnnObject(AnnContainer container) { foreach(AnnObject obj in container.Objects) { string s = string.Format("Type: {0}, Name: {1}, Hyperlink: {2}", obj.GetType().Name, obj.Name, obj.Hyperlink); MessageBox.Show(s); } } |
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.
System.Object
Leadtools.Annotations.AnnDrawable
Leadtools.Annotations.AnnObject
Leadtools.Annotations.AnnCrossProductObject
Leadtools.Annotations.AnnGroupObject
Leadtools.Annotations.AnnLineObject
Leadtools.Annotations.AnnPointObject
Leadtools.Annotations.AnnPolylineObject
Leadtools.Annotations.AnnProtractorObject
Leadtools.Annotations.AnnRectangleObject
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7