The distance in pixels that the
AnnObject.RotateGripper control point is originally
placed from the bounds of the
AnnObject.
Syntax
Visual Basic (Declaration) | |
---|
Public Property GripperDistance As Integer |
Visual Basic (Usage) | Copy Code |
---|
Dim instance As AnnObject
Dim value As Integer
instance.GripperDistance = value
value = instance.GripperDistance
|
C# | |
---|
public int GripperDistance {get; set;} |
C++/CLI | |
---|
public:
property int GripperDistance {
int get();
void set (int value);
} |
Return Value
The distance in pixels that the
AnnObject.RotateGripper control point is originally
placed from the bounds of the
AnnObject.
Example
This example does the following:
- displays the AnnObject.RotateCenter and AnnObject.RotateGripper location (in object coordinates)
- changes the gripper distance to 60 pixels
- resets the rotate points to a new location (using the new gripper distance)
Visual Basic | Copy Code |
---|
Public Sub AnnObject_GripperDistance(ByVal obj As AnnObject)
Dim s As String = String.Format("RotateCenter: ({0},{1}) RotateGripper: ({2},{3})", obj.RotateCenter.X, obj.RotateCenter.Y, obj.RotateGripper.X, obj.RotateGripper.Y)
MessageBox.Show(s)
obj.GripperDistance = 60
obj.ResetRotatePoints()
End Sub |
C# | Copy Code |
---|
public void AnnObject_GripperDistance(AnnObject obj) { string s = String.Format("RotateCenter: ({0},{1}) RotateGripper: ({2},{3})", obj.RotateCenter.X, obj.RotateCenter.Y, obj.RotateGripper.X, obj.RotateGripper.Y); MessageBox.Show(s); obj.GripperDistance = 60; obj.ResetRotatePoints(); } |
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also