Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.RotateObject


CorelScript.RotateObject

Function RotateObject(Angle As Long, UseObjectsCenter As Boolean, XCenter As Long, YCenter As Long) As Long

Description

Member of CorelScript

The RotateObject method rotates the selected object.

Parameter
Description
Angle
Specifies the angle of rotation of the selected object, expressed in millionths of a degree. Negative values rotate the object clockwise from its current position, while positive values rotate it counterclockwise — for example, 45° clockwise = -45000000. To determine angle measurements, use the CorelScriptTools.AngleConvert method.
UseObjectsCenter
Specifies whether to rotate around the center of the object. True (-1) enables this option, while False (0) disables it.
XCenter
Specifies the logical x-coordinate of the center of the object to be rotated, in tenths of a micron and relative to the center of the page
YCenter
Specifies the logical y-coordinate of the center of the object to be rotated, in tenths of a micron and relative to the center of the page

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.