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




Gets or sets the AnnPen used to draw a line between the rotate control points for all AnnEditDesigner derived objects.

Syntax

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

Return Value

The AnnPen used to draw a line between the rotate control points.

Example

This example changes the look of the rotate user interface by performing the following actions: <list type="number"> <item><description>Sets the rotate line pen to be solid red</description></item> <item><description>Changes the rotate center control point to be a black circle filled with red</description></item> <item><description>Changes the rotate gripper control point to be a blue rectangle filled with yellow</description></item> </list>

Visual BasicCopy Code
Public Sub AnnAutomationManager_RotateLinePen(ByVal manager As AnnAutomationManager)
   Dim annPen As AnnPen = New AnnPen(System.Drawing.Color.Red, New AnnLength(4, AnnUnit.Pixel))
   manager.RotateLinePen = annPen
   Dim cpCenter As AnnEllipseControlPoint = New AnnEllipseControlPoint()
   cpCenter.Pen = New AnnPen(Color.Black, New AnnLength(1, AnnUnit.Pixel))
   cpCenter.Brush = New AnnSolidBrush(Color.FromArgb(128, 255, 0, 0))
   cpCenter.Size = New AnnSize(12, 12, AnnUnit.Pixel)
   manager.RotateCenterControlPoint = cpCenter

   Dim cpGripper As AnnRectangleControlPoint = New AnnRectangleControlPoint()
   cpGripper.Pen = New AnnPen(Color.Blue, New AnnLength(3, AnnUnit.Pixel))
   cpGripper.Brush = New AnnSolidBrush(Color.Yellow)
   cpGripper.Size = New AnnSize(8, 8, AnnUnit.Pixel)
   manager.RotateGripperControlPoint = cpGripper
End Sub
C#Copy Code
public void AnnAutomationManager_RotateLinePen(AnnAutomationManager manager) 

   AnnPen annPen = new AnnPen(System.Drawing.Color.Red, new AnnLength(4, AnnUnit.Pixel)); 
   manager.RotateLinePen = annPen; 
   AnnEllipseControlPoint cpCenter = new AnnEllipseControlPoint(); 
   cpCenter.Pen = new AnnPen(Color.Black, new AnnLength(1, AnnUnit.Pixel)); 
   cpCenter.Brush = new AnnSolidBrush(Color.FromArgb(128, 255, 0, 0)); 
   cpCenter.Size = new AnnSize(12, 12, AnnUnit.Pixel); 
   manager.RotateCenterControlPoint = cpCenter; 
 
   AnnRectangleControlPoint cpGripper = new AnnRectangleControlPoint(); 
   cpGripper.Pen = new AnnPen(Color.Blue, new AnnLength(3, AnnUnit.Pixel)); 
   cpGripper.Brush = new AnnSolidBrush(Color.Yellow); 
   cpGripper.Size = new AnnSize(8, 8, AnnUnit.Pixel); 
   manager.RotateGripperControlPoint = cpGripper; 
}

Remarks

This property gets or sets the pen that is used to draw the line that appears between the rotate control points when dragging either the center rotate control point or the gripper rotate control point.

Used when UserMode is AnnUserMode.Design.

For more information, refer to New Annotation Features of Version 14.5.

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