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



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

This class provides support for creating and managing text pointer objects.

Object Model

AnnTextPointerObject ClassAnnRectangle StructureAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnLength StructureAnnFont ClassAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnPoint StructureAnnUnitConverter Class

Syntax

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

Example

This example creates a new text pointer object.

Visual BasicCopy Code
Private Sub AnnTextPointerObject_AnnTextPointerObject(ByVal container As AnnContainer, ByVal textString As String)
   Dim textPointer As AnnTextPointerObject = New AnnTextPointerObject()
   textPointer.Text = textString
   textPointer.Pen = New AnnPen(Color.Green, New AnnLength(5))
   textPointer.Brush = New AnnSolidBrush(Color.White)
   textPointer.Font = New AnnFont("Arial", New AnnLength(10, AnnUnit.Point), FontStyle.Regular)
   textPointer.EdgeMargin = AnnLength.Empty
   textPointer.Alignment = StringAlignment.Center
   textPointer.LineAlignment = StringAlignment.Center
   textPointer.Bounds = New AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel)
   textPointer.PointerPosition = New AnnPoint(800, 800, AnnUnit.Pixel)
   textPointer.FixedPointer = True
   container.Objects.Add(textPointer)
End Sub
C#Copy Code
private void AnnTextPointerObject_AnnTextPointerObject(AnnContainer container, string textString)
{
   AnnTextPointerObject textPointer = new AnnTextPointerObject();
   textPointer.Text = textString;
   textPointer.Pen = new AnnPen(Color.Green, new AnnLength(5));
   textPointer.Brush = new AnnSolidBrush(Color.White);
   textPointer.Font = new AnnFont("Arial", new AnnLength(10, AnnUnit.Point), FontStyle.Regular);
   textPointer.EdgeMargin = AnnLength.Empty;
   textPointer.Alignment = StringAlignment.Center;
   textPointer.LineAlignment = StringAlignment.Center;
   textPointer.Bounds = new AnnRectangle(100, 200, 400, 600, AnnUnit.Pixel);
   textPointer.PointerPosition = new AnnPoint(800, 800, AnnUnit.Pixel);
   textPointer.FixedPointer = true;
   container.Objects.Add(textPointer);
}

Remarks

The text pointer annotation object extends the AnnTextObject class by providing an extra line that starts from one of the four corners of the bounding rectangle, around the text. The other endpoint of the line can be moved to point to anything on the underlying image. This extra endpoint may or may not be fixed, depending on the FixedPointer value. For more information, refer to Using Text in Annotation Object. For more information about the text pointer annotation object refer to AnnTextPointerObject. For more information about the automated text pointer annotation object, refer to Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnRectangleObject
            Leadtools.Annotations.AnnTextObject
               Leadtools.Annotations.AnnTextPointerObject

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