←Select platform

RotateLinePen Property

Summary

Gets or sets the System.Windows.Media.Color used to draw a line between the rotate control points for all AnnEditDesigner derived objects.

Syntax

C#
VB
C++
public Color RotateLinePen { get; set; } 
  
Public Property RotateLinePen As Color 
public: 
property Color RotateLinePen { 
   Color get(); 
   void set (    Color ); 
} 

Property Value

The System.Windows.Media.Color used to draw a line between the rotate control points.

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.

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
    C#
    VB
    Silverlight C#
    Silverlight VB
    using Leadtools.Windows.Controls; 
    using Leadtools.Windows.Annotations; 
    using Leadtools.Demos; 
    using Leadtools.Help; 
     
    private void AnnAutomationManager_RotateLinePen(AnnAutomationManager manager) 
    { 
       manager.RotateLinePen = Colors.Red; 
     
       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; 
    } 
    Imports Leadtools.Windows.Controls 
    Imports Leadtools.Windows.Annotations 
     
    Private Sub AnnAutomationManager_RotateLinePen(ByVal manager As AnnAutomationManager) 
       manager.RotateLinePen = Colors.Red 
     
       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 
    using Leadtools.Windows.Controls; 
    using Leadtools.Windows.Annotations; 
    using Leadtools.Examples; 
    using Leadtools.Silverlight.Demos; 
    //using Leadtools.Help; 
     
    private void AnnAutomationManager_RotateLinePen(AnnAutomationManager manager) 
    { 
       manager.RotateLinePen = Colors.Red; 
     
       Thumb center = new Thumb(); 
       center.Width = center.Height = 12; 
       center.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0)); 
       center.BorderBrush = new SolidColorBrush(Colors.Black); 
       center.BorderThickness = new Thickness(1.0); 
       manager.RotateCenterControlPoint = center; 
     
       Thumb gripper = new Thumb(); 
       gripper.Background = new SolidColorBrush(Color.FromArgb(255, 128, 128, 0)); 
       gripper.BorderBrush = new SolidColorBrush(Colors.Blue); 
       gripper.BorderThickness = new Thickness(3.0); 
       gripper.Width = gripper.Height = 8; 
       manager.RotateGripperControlPoint = gripper; 
    } 
    Imports Leadtools.Windows.Controls 
    Imports Leadtools.Windows.Annotations 
    Imports Leadtools.Silverlight.Demos 
    'using Leadtools.Help; 
     
    Private Sub AnnAutomationManager_RotateLinePen(ByVal manager As AnnAutomationManager) 
       manager.RotateLinePen = Colors.Red 
     
       Dim center As Thumb = New Thumb() 
       center.Width = 12 
       center.Height = 12 
       center.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0)) 
       center.BorderBrush = New SolidColorBrush(Colors.Black) 
       center.BorderThickness = New Thickness(1.0) 
       manager.RotateCenterControlPoint = center 
     
       Dim gripper As Thumb = New Thumb() 
       gripper.Background = New SolidColorBrush(Color.FromArgb(255, 128, 128, 0)) 
       gripper.BorderBrush = New SolidColorBrush(Colors.Blue) 
       gripper.BorderThickness = New Thickness(3.0) 
       gripper.Width = 8 
       gripper.Height = 8 
       manager.RotateGripperControlPoint = gripper 
    End Sub 
Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Windows.Annotations Assembly