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;} |
XAML Syntax | |
---|
For XAML information, see the System.Windows.Controls.Primitives.Thumb type. |
XAML Syntax | |
---|
For XAML information, see the System.Windows.Controls.Primitives.Thumb type. |
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:
- Sets the rotate line pen to be solid red
- Changes the rotate center control point to be a black circle filled with red
- Changes the rotate gripper control point to be a blue rectangle filled with yellow
Visual Basic | Copy 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
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also