IMcGraphObjRect2SetPosition Method
|
|
Change the position of an object.
Namespace:
MediaCy.IQL.Display.Overlays
Assembly:
MediaCy.IQL.Display.Overlays (in MediaCy.IQL.Display.Overlays.dll) Version: 10.0.6912.0
SyntaxSub SetPosition (
x As Single,
y As Single,
Optional Dragging As Boolean = false,
Optional FromTool As Boolean = false
)
Parameters
- x
- Type: SystemSingle
x coordinate. - y
- Type: SystemSingle
y coordinate. - Dragging (Optional)
- Type: SystemBoolean
Set to true when the object is dragged interactively. - FromTool (Optional)
- Type: SystemBoolean
Set to True when calling from a graphic tool.
Implements
IMcGraphObjRectSetPosition(Single, Single, Boolean, Boolean)
RemarksThe position is the location of handle number 1, which for rectangle-based objects
is the left upper corner of the defining rectangle. Calling SetPosition
differs from calling SetHandle for handle 1 in that SetPosition moves the
entire object, while SetHandle only moves the one handle (i.e., it changes
the size of the object).
The supplied x,y position is the unrotated position of the object (i.e., at zero
AngleOfRotation), which is also the way that GetPosition returns its results.
The RotatedPosition property exposes and allows assignment of rotated position
coordinates. Note that the GetPoints method will also return rotated
coordinates. Also, the GetBounds method returns the bounds of the rotated
points.
If the object does not have its mcgsAllowMove bit set in his Style property,
and if FromTool is True, the function will return immediately.
See Also