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





Gets or sets the Thumb object for the rotate gripper control point for this AnnEditDesigner.

Syntax

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

Dependencies Property Information 

Identifier field

RotateGripperControlPointProperty

Metadata properties set to true

None

XAML Syntax 
For XAML information, see the System.Windows.Controls.Primitives.Thumb type.

Dependencies Property Information 

Identifier field

RotateGripperControlPointProperty

Metadata properties set to true

None

Return Value

The Thumb object used for displaying the rotate gripper control point for this AnnEditDesigner.

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
Public Sub AnnEditDesigner_RotateGripperControlPoint(ByVal editDesigner As AnnEditDesigner)
  Dim pen As Pen = New Pen(Brushes.Red, 4.0)
  pen.DashStyle = DashStyles.DashDot
  editDesigner.RotateLinePen = pen
  Dim cpCenter As System.Windows.Controls.Primitives.Thumb = New System.Windows.Controls.Primitives.Thumb()
  cpCenter.BorderBrush = Brushes.Black
  cpCenter.BorderThickness = New Thickness(1.0)
  cpCenter.Background = New SolidColorBrush(Color.FromArgb(128, 255, 0, 0))
    cpCenter.Width = 12
    cpCenter.Height = 12
  editDesigner.RotateCenterControlPoint = cpCenter

  Dim cpGripper As System.Windows.Controls.Primitives.Thumb = New System.Windows.Controls.Primitives.Thumb()
  cpCenter.BorderBrush = Brushes.Blue
  cpCenter.BorderThickness = New Thickness(3.0)
  cpGripper.Background = Brushes.Yellow
    cpGripper.Width = 8
    cpGripper.Height = 8
  editDesigner.RotateGripperControlPoint = cpGripper
End Sub
C#Copy Code
public void AnnEditDesigner_RotateGripperControlPoint(AnnEditDesigner editDesigner) 

   Pen pen = new Pen(Brushes.Red, 4.0); 
   pen.DashStyle = DashStyles.DashDot; 
   editDesigner.RotateLinePen = pen; 
   System.Windows.Controls.Primitives.Thumb cpCenter = new System.Windows.Controls.Primitives.Thumb(); 
   cpCenter.BorderBrush = Brushes.Black; 
   cpCenter.BorderThickness = new Thickness(1.0); 
   cpCenter.Background = new SolidColorBrush(Color.FromArgb(128, 255, 0, 0)); 
   cpCenter.Width = cpCenter.Height = 12; 
   editDesigner.RotateCenterControlPoint = cpCenter; 
 
   System.Windows.Controls.Primitives.Thumb cpGripper = new System.Windows.Controls.Primitives.Thumb(); 
   cpCenter.BorderBrush = Brushes.Blue; 
   cpCenter.BorderThickness = new Thickness(3.0); 
   cpGripper.Background = Brushes.Yellow; 
   cpGripper.Width = cpGripper.Height = 8; 
   editDesigner.RotateGripperControlPoint = cpGripper; 
}

Remarks

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

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