Gets the rotate gripper control point location of the selected object in object coordinates.
Syntax
| Visual Basic (Declaration) | |
|---|
Public ReadOnly Property RotateGripperControlPointLocation As Point |
| Visual Basic (Usage) | Copy Code |
|---|
Dim instance As AnnEditDesigner
Dim value As Point
value = instance.RotateGripperControlPointLocation
|
| C# | |
|---|
public Point RotateGripperControlPointLocation {get;} |
| C++/CLI | |
|---|
public:
property Point RotateGripperControlPointLocation {
Point get();
} |
| XAML Syntax | |
|---|
| You cannot use this property in XAML. |
| XAML Syntax | |
|---|
| You cannot use this property in XAML. |
Return Value
The rotate gripper control point location of the selected object in object coordinates.
Example
This example displays the location of the rotate control points in container coordinates.
| Visual Basic | Copy Code |
|---|
Public Sub AnnEditDesigner_RotateGripperControlPointLocation(ByVal editDesigner As AnnEditDesigner)
Dim ptC As System.Windows.Point = editDesigner.RotateCenterControlPointLocation
Dim ptG As System.Windows.Point = editDesigner.RotateGripperControlPointLocation
Dim pts() As System.Windows.Point = {New System.Windows.Point(ptC.X, ptC.Y), New System.Windows.Point(ptG.X, ptG.Y)}
editDesigner.AdornedElement.RenderTransform.Value.Transform(pts)
Dim s As String = String.Format("RotateCenterControlPoint({0},{1}), RotateGripperControlPoint({2},{3})", pts(0).X, pts(0).Y, pts(1).X, pts(1).Y)
MessageBox.Show(s)
End Sub |
| C# | Copy Code |
|---|
public void AnnEditDesigner_RotateGripperControlPointLocation(AnnEditDesigner editDesigner) { Point ptC = editDesigner.RotateCenterControlPointLocation; Point ptG = editDesigner.RotateGripperControlPointLocation; // Transform the points by the AnnObject physical transform Point[] pts = new Point[] { new Point(ptC.X, ptC.Y), new Point(ptG.X, ptG.Y) }; editDesigner.AdornedElement.RenderTransform.Value.Transform(pts); string s = String.Format("RotateCenterControlPoint({0},{1}), RotateGripperControlPoint({2},{3})", pts[0].X, pts[0].Y, pts[1].X, pts[1].Y); MessageBox.Show(s); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also