LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnPointerObject Class
See Also  Members  
Leadtools.Annotations Namespace : AnnPointerObject Class



The AnnPointerObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.

Defines an annotation pointer object.

Object Model

AnnPointerObject ClassAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnPoint StructureAnnFont ClassAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnPoint StructureAnnUnitConverter Class

Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnPointerObject 
   Inherits AnnLineObject
   Implements ICloneableIDisposableISerializable 
Visual Basic (Usage)Copy Code
Dim instance As AnnPointerObject
C# 
[SerializableAttribute()]
public class AnnPointerObject : AnnLineObject, ICloneableIDisposableISerializable  
C++/CLI 
[SerializableAttribute()]
public ref class AnnPointerObject : public AnnLineObject, ICloneableIDisposableISerializable  

Example

This example adds a new pointer object to a container.

Visual BasicCopy Code
Private Sub AnnPointerObject_AnnPointerObject(ByVal container As AnnContainer)
   Dim pointer As AnnPointerObject = New AnnPointerObject()
   pointer.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
   pointer.StartPoint = New AnnPoint(100, 100, AnnUnit.Pixel)
   pointer.EndPoint = New AnnPoint(200, 200, AnnUnit.Pixel)
   container.Objects.Add(pointer)
End Sub
C#Copy Code
private void AnnPointerObject_AnnPointerObject(AnnContainer container)
{
   AnnPointerObject pointer = new AnnPointerObject();
   pointer.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel));
   pointer.StartPoint = new AnnPoint(100, 100, AnnUnit.Pixel);
   pointer.EndPoint = new AnnPoint(200, 200, AnnUnit.Pixel);
   container.Objects.Add(pointer);
}

Remarks

The pointer annotation object is defined by two points, with an arrow at the first point. For more information about the pointer annotation object refer to AnnPointerObject. For more information about the automated pointer annotation object, refer to Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnLineObject
            Leadtools.Annotations.AnnPointerObject

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features