Defines an annotation pointer object.
Object Model
Syntax
XAML Object Element Usage | |
---|
<AnnPointerObject .../> |
XAML Object Element Usage | |
---|
<AnnPointerObject .../> |
Example
For XAML example, refer to AnnGroupObject.
This example adds a new pointer object to a container.
Visual Basic | Copy Code |
---|
Private Sub AnnPointerObject_AnnPointerObject(ByVal container As AnnContainer)
Dim pointer As AnnPointerObject = New AnnPointerObject()
pointer.Stroke = Brushes.Red
pointer.StrokeThickness = 1.0
pointer.X1 = 100
pointer.Y1 = 100
pointer.X2 = 200
pointer.Y2 = 200
container.Children.Add(pointer)
End Sub |
C# | Copy Code |
---|
private void AnnPointerObject_AnnPointerObject(AnnContainer container) { AnnPointerObject pointer = new AnnPointerObject(); pointer.Stroke = Brushes.Red; pointer.StrokeThickness = 1.0; pointer.X1 = 100; pointer.Y1 = 100; pointer.X2 = 200; pointer.Y2 = 200; container.Children.Add(pointer); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also