LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

ControlPoint Property

Example 





Gets or sets the AnnControlPoint object for all AnnEditDesigner derived classes.
Syntax
public AnnControlPoint ControlPoint {get; set;}
'Declaration
 
Public Property ControlPoint As AnnControlPoint
'Usage
 
Dim instance As AnnAutomationManager
Dim value As AnnControlPoint
 
instance.ControlPoint = value
 
value = instance.ControlPoint
public AnnControlPoint ControlPoint {get; set;}
 get_ControlPoint();
set_ControlPoint(value);
public:
property AnnControlPoint^ ControlPoint {
   AnnControlPoint^ get();
   void set (    AnnControlPoint^ value);
}

Property Value

The AnnControlPoint object for all AnnEditDesigner derived classes.
Remarks

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

Example
 
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
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
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnAutomationManager Class
AnnAutomationManager Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.