This class provides support for creating and managing text pointer objects.
Object Model
Syntax
XAML Object Element Usage | |
---|
<AnnTextPointerObject .../> |
XAML Object Element Usage | |
---|
<AnnTextPointerObject .../> |
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 = Brushes.Green
textPointer.StrokeThickness = 5.0
textPointer.Fill = Brushes.White
textPointer.FontFamily = New FontFamily("Arial")
textPointer.FontSize = 10.0
textPointer.FontStyle = FontStyles.Normal
textPointer.TextEdgeMargin = 0.0
textPointer.TextHorizontalAlignment = AnnTextAlignment.Center
textPointer.TextVerticalAlignment = AnnTextAlignment.Center
textPointer.Left = 100
textPointer.Top = 200
textPointer.Width = 400
textPointer.Height = 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.Stroke = Brushes.Green; textPointer.StrokeThickness = 5.0; textPointer.Fill = Brushes.White; textPointer.FontFamily = new FontFamily("Arial"); textPointer.FontSize = 10.0; textPointer.FontStyle = FontStyles.Normal; textPointer.TextEdgeMargin = 0.0; textPointer.TextHorizontalAlignment = AnnTextAlignment.Center; textPointer.TextVerticalAlignment = AnnTextAlignment.Center; textPointer.Left = 100; textPointer.Top = 200; textPointer.Width = 400; textPointer.Height = 600; textPointer.PointerPosition = new Point(800, 800); textPointer.IsFixedPointer = true; container.Children.Add(textPointer); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also