This class provides support for creating and managing text pointer objects.
public class AnnTextPointerObject : Leadtools.Windows.Annotations.AnnTextObject, Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
Public Class AnnTextPointerObject
Inherits Leadtools.Windows.Annotations.AnnTextObject
Implements Leadtools.Windows.Annotations.IAnnFont, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnRectangle, Leadtools.Windows.Annotations.IAnnText
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 IsFixedPointer value. For more information, refer to Using Text in WPF Annotation Objects. For more information about the text pointer annotation object refer to AnnTextPointerObject for WPF. For more information about the automated text pointer annotation object, refer to WPF Annotation Objects - Automated Features.
For XAML example, refer to AnnGroupObject.
This example creates a new text pointer object.
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnTextPointerObject_AnnTextPointerObject(ByVal container As AnnContainer, ByVal textString As String)
Dim textPointer As AnnTextPointerObject = New AnnTextPointerObject()
textPointer.Text = textString
textPointer.Stroke = Colors.Green
textPointer.StrokeThickness = 5.0
textPointer.Fill = Colors.White
textPointer.FontFamilyName = "Arial"
textPointer.FontSize = 10.0
textPointer.FontStyle = AnnFontStyle.Normal
textPointer.TextEdgeMargin = 0.0
textPointer.TextHorizontalAlignment = AnnTextAlignment.Center
textPointer.TextVerticalAlignment = AnnTextAlignment.Center
textPointer.Rect = New Rect(100, 200, 400, 600)
textPointer.PointerPosition = New System.Windows.Point(800, 800)
textPointer.IsFixedPointer = True
container.Children.Add(textPointer)
End Sub
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnTextPointerObject_AnnTextPointerObject(AnnContainer container, string textString)
{
AnnTextPointerObject textPointer = new AnnTextPointerObject();
textPointer.Text = textString;
textPointer.StrokeThickness = 5.0;
textPointer.FontFamilyName = "Arial";
textPointer.FontSize = 10.0;
textPointer.TextEdgeMargin = 0.0;
textPointer.TextHorizontalAlignment = AnnTextAlignment.Center;
textPointer.TextVerticalAlignment = AnnTextAlignment.Center;
textPointer.Stroke = Colors.Green;
textPointer.Fill = Colors.White;
textPointer.FontStyle = AnnFontStyle.Normal;
textPointer.Rect = new Rect(100, 200, 400, 600);
textPointer.PointerPosition = new Point(800, 800);
textPointer.IsFixedPointer = true;
container.Children.Add(textPointer);
}
using Leadtools.Windows.Controls;
using Leadtools.Windows.Annotations;
using Leadtools.Examples;
private void AnnTextPointerObject_AnnTextPointerObject(AnnContainer container, string textString)
{
AnnTextPointerObject textPointer = new AnnTextPointerObject();
textPointer.Text = textString;
textPointer.StrokeThickness = 5.0;
textPointer.FontFamilyName = "Arial";
textPointer.FontSize = 10.0;
textPointer.TextHorizontalAlignment = AnnTextAlignment.Center;
textPointer.Stroke = Colors.Green;
textPointer.Fill = Colors.White;
textPointer.FontStyle = AnnFontStyle.Normal;
textPointer.Rect = new Rect(100, 200, 400, 600);
textPointer.PointerPosition = new Point(800, 800);
textPointer.IsFixedPointer = true;
container.Children.Add(textPointer);
}
Imports Leadtools.Windows.Controls
Imports Leadtools.Windows.Annotations
Private Sub AnnTextPointerObject_AnnTextPointerObject(ByVal container As AnnContainer, ByVal textString As String)
Dim textPointer As AnnTextPointerObject = New AnnTextPointerObject()
textPointer.Text = textString
textPointer.StrokeThickness = 5.0
textPointer.FontFamilyName = "Arial"
textPointer.FontSize = 10.0
textPointer.TextHorizontalAlignment = AnnTextAlignment.Center
textPointer.Stroke = Colors.Green
textPointer.Fill = Colors.White
textPointer.FontStyle = AnnFontStyle.Normal
textPointer.Rect = New Rect(100, 200, 400, 600)
textPointer.PointerPosition = New Point(800, 800)
textPointer.IsFixedPointer = True
container.Children.Add(textPointer)
End Sub
Products |
Support |
Feedback: AnnTextPointerObject Class - Leadtools.Windows.Annotations |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.