LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnTextPointerObject Class

Example 





Members 
This class provides support for creating and managing text pointer objects. .NET support Silverlight support
Object Model
AnnTextPointerObject ClassAnnBrush ClassAnnBrush Class
Syntax
public class AnnTextPointerObject : AnnTextObject, IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
'Declaration
 
Public Class AnnTextPointerObject 
   Inherits AnnTextObject
   Implements IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText 
'Usage
 
Dim instance As AnnTextPointerObject
public sealed class AnnTextPointerObject : IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
function Leadtools.Windows.Annotations.AnnTextPointerObject()
public ref class AnnTextPointerObject : public AnnTextObject, IAnnFontIAnnHeaderIAnnObjectIAnnRectangleIAnnText  
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 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.

Example

For XAML example, refer to AnnGroupObject.

Copy CodeCopy Code  
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
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);
}
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);
}
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
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnTextPointerObject Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.