The AnnTextPointerObject Class supports WPF/Silverlight.
The AnnTextPointerObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
This class provides support for creating and managing text pointer objects.
Supported in Silverlight, Windows Phone 7
Object Model
Syntax
Example
For XAML example, refer to AnnGroupObject.
This example creates a new text pointer object.
Visual Basic | Copy 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 |
C# | Copy Code |
---|
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);
} |
SilverlightCSharp | Copy Code |
---|
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);
} |
SilverlightVB | Copy Code |
---|
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 |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
See Also