Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
AnnPointerObject Class
See Also  Members   Example 
Leadtools.Annotations Namespace : AnnPointerObject Class




Defines an annotation pointer object.

Object Model















Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnPointerObject 
   Inherits AnnLineObject
Visual Basic (Usage)Copy Code
Dim instance As AnnPointerObject
C# 
[SerializableAttribute()]
public class AnnPointerObject : AnnLineObject 
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class AnnPointerObject : public AnnLineObject 
C++/CLI 
[SerializableAttribute()]
public ref class AnnPointerObject : public AnnLineObject 

Example

This example adds a new pointer object to a container.

Visual BasicCopy Code
Private Sub AnnPointerObject_AnnPointerObject(ByVal container As AnnContainer)
   Dim pointer As AnnPointerObject = New AnnPointerObject()
   pointer.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
   pointer.StartPoint = New AnnPoint(100, 100, AnnUnit.Pixel)
   pointer.EndPoint = New AnnPoint(200, 200, AnnUnit.Pixel)
   container.Objects.Add(pointer)
End Sub
C#Copy Code
private void AnnPointerObject_AnnPointerObject(AnnContainer container) 

   AnnPointerObject pointer = new AnnPointerObject(); 
   pointer.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel)); 
   pointer.StartPoint = new AnnPoint(100, 100, AnnUnit.Pixel); 
   pointer.EndPoint = new AnnPoint(200, 200, AnnUnit.Pixel); 
   container.Objects.Add(pointer); 
}

Remarks

The pointer annotation object is defined by two points, with an arrow at the first point. For more information about the pointer annotation object refer to AnnPointerObject. For more information about the automated pointer annotation object, refer to Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnLineObject
            Leadtools.Annotations.AnnPointerObject

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features