This class provides support for creating and managing text pointer objects.
Object Model
Syntax
Example
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.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 |
C# | Copy Code |
---|
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); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also