←Select platform

AnnTextPointerObject Class

Summary

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

Syntax

C#
VB
C++
[SerializableAttribute()] 
public class AnnTextPointerObject : Leadtools.Annotations.AnnTextObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable   
  
<SerializableAttribute()> 
Public Class AnnTextPointerObject  
   Inherits Leadtools.Annotations.AnnTextObject 
   Implements Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable  
[SerializableAttribute()] 
public ref class AnnTextPointerObject : public Leadtools.Annotations.AnnTextObject, Leadtools.Annotations.IAnnTextObject, System.ICloneable, System.IDisposable, System.Runtime.Serialization.ISerializable   

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. (Deprecated) For more information about the text pointer annotation object refer to AnnTextPointerObject (Deprecated). For more information about the automated text pointer annotation object, refer to Annotation Objects - Automated Features (Deprecated).

Example

This example creates a new text pointer object.

C#
VB
using Leadtools; 
using Leadtools.Annotations; 
using Leadtools.Codecs; 
using Leadtools.WinForms; 
 
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); 
} 
Imports Leadtools 
Imports Leadtools.Annotations 
Imports Leadtools.Codecs 
Imports Leadtools.WinForms 
 
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 

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Annotations Assembly
Click or drag to resize