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




Gets or sets the AnnControlPoint object for all AnnEditDesigner derived classes.

Syntax

Visual Basic (Declaration) 
Public Property ControlPoint As AnnControlPoint
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As AnnControlPoint
 
instance.ControlPoint = value
 
value = instance.ControlPoint
C# 
public AnnControlPoint ControlPoint {get; set;}
Managed Extensions for C++ 
public: __property AnnControlPoint* get_ControlPoint();
public: __property void set_ControlPoint( 
   AnnControlPoint* value
);
C++/CLI 
public:
property AnnControlPoint^ ControlPoint {
   AnnControlPoint^ get();
   void set (AnnControlPoint^ value);
}

Return Value

The AnnControlPoint object for all AnnEditDesigner derived classes.

Example

Visual BasicCopy Code
Public Sub AnnAutomationManager_ControlPoint(ByVal manager As AnnAutomationManager)
   ' Use an ellipse control point with red brush (alpha = 128)
   Dim cp As AnnEllipseControlPoint = New AnnEllipseControlPoint()
   cp.Pen = New AnnPen(Color.Black, New AnnLength(1, AnnUnit.Pixel))
   cp.Brush = New AnnSolidBrush(Color.FromArgb(128, 255, 0, 0))
   cp.Size = New AnnSize(12, 12, AnnUnit.Pixel)
   manager.ControlPoint = cp
   ' now, whenever you draw or select an object in this manager, this control point will be used
End Sub
C#Copy Code
public void AnnAutomationManager_ControlPoint(AnnAutomationManager manager) 

   // Use an ellipse control point with red brush (alpha = 128) 
   AnnEllipseControlPoint cp = new AnnEllipseControlPoint(); 
   cp.Pen = new AnnPen(Color.Black, new AnnLength(1, AnnUnit.Pixel)); 
   cp.Brush = new AnnSolidBrush(Color.FromArgb(128, 255, 0, 0)); 
   cp.Size = new AnnSize(12, 12, AnnUnit.Pixel); 
   manager.ControlPoint = cp; 
   // now, whenever you draw or select an object in this manager, this control point will be used 
}

Remarks

When the automation framework uses reflection to create any of the EditDesignerType, it will use this value in the created AnnEditDesigner.ControlPoints collection.

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