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





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

Syntax

Visual Basic (Declaration) 
Public Property RotateLinePen As Pen
Visual Basic (Usage)Copy Code
Dim instance As AnnAutomationManager
Dim value As Pen
 
instance.RotateLinePen = value
 
value = instance.RotateLinePen
C# 
public Pen RotateLinePen {get; set;}
C++/CLI 
public:
property Pen RotateLinePen {
   Pen get();
   void set (Pen value);
}
XAML Syntax 
For XAML information, see the System.Windows.Media.Pen type.
XAML Property Element Usage 

<object> <object.RotateLinePen> <Pen .../> </object.RotateLinePen> </object>

XAML Syntax 
For XAML information, see the System.Windows.Media.Pen type.
XAML Property Element Usage 

<object> <object.RotateLinePen> <Pen .../> </object.RotateLinePen> </object>

Return Value

The Pen 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:

  1. Sets the rotate line pen to be solid red
  2. Changes the rotate center control point to be a black circle filled with red
  3. Changes the rotate gripper control point to be a blue rectangle filled with yellow

Visual BasicCopy Code
Private Sub AnnAutomationManager_RotateLinePen(ByVal manager As AnnAutomationManager)
  Dim pen As Pen = New Pen(Brushes.Red, 4)
  manager.RotateLinePen = pen
  Dim center As Thumb = New Thumb()
    center.Width = 12
    center.Height = 12
  center.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0))
  center.BorderBrush = Brushes.Black
  center.BorderThickness = New Thickness(1.0)
  manager.RotateCenterControlPoint = center

  Dim gripper As Thumb = New Thumb()
  gripper.Background = Brushes.Yellow
  gripper.BorderBrush = Brushes.Blue
  gripper.BorderThickness = New Thickness(3.0)
    gripper.Width = 8
    gripper.Height = 8
  manager.RotateGripperControlPoint = gripper
End Sub
C#Copy Code
private void AnnAutomationManager_RotateLinePen(AnnAutomationManager manager) 

   Pen pen = new Pen(Brushes.Red, 4); 
   manager.RotateLinePen = pen; 
   Thumb center = new Thumb(); 
   center.Width = center.Height = 12; 
   center.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0)); 
   center.BorderBrush = Brushes.Black; 
   center.BorderThickness = new Thickness(1.0); 
   manager.RotateCenterControlPoint = center; 
 
   Thumb gripper = new Thumb(); 
   gripper.Background = Brushes.Yellow; 
   gripper.BorderBrush = Brushes.Blue; 
   gripper.BorderThickness = new Thickness(3.0); 
   gripper.Width = gripper.Height = 8; 
   manager.RotateGripperControlPoint = gripper; 
}

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 WPF Annotation Rotation Options.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

RotateLinePen requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.