Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

setRotate method

Sets the transform type to SVG_TRANSFORM_ROTATE by using the specified rotation angle and center of rotation.

Scalable Vector Graphics: Coordinate Systems, Transformations and Units, Section 7.14.4Internet Explorer 9

 

Syntax

var retval = SVGTransform.setRotate(angle, cx, cy);

Parameters

angle [in]

Type: Floating-point

The rotation angle.

cx [in]

Type: Floating-point

The x-coordinate of the center of rotation.

cy [in]

Type: Floating-point

The y-coordinate of the center of rotation.

Return value

Type: HRESULT

This method can return one of these values.

Return codeDescription
W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR

IE9 mode only.

An attempt is made to modify an object that cannot be changed.

 

Exceptions

ExceptionCondition
NoModificationAllowedError

An attempt is made to modify an object that cannot be changed. For versions earlier than Internet Explorer 10, NO_MODIFICATION_ALLOWED_ERR is returned.

 

Standards information

Remarks

The setRotate method can raise a DOMException exception with the code NO_MODIFICATION_ALLOWED_ERR. This exception is raised if you try to change the value of a read-only attribute.

See also

SVGTransform

 

 

Show:
© 2015 Microsoft