setTranslate method
Sets the transform type to SVG_TRANSFORM_TRANSLATE by using the specified components.
![]() ![]() |
Syntax
var retval = SVGTransform.setTranslate(tx, ty);Parameters
- tx [in]
-
Type: Floating-point
The horizontal component of the translation.
- ty [in]
-
Type: Floating-point
The vertical component of the translation.
Return value
Type: HRESULT
This method can return one of these values.
| Return code | Description |
|---|---|
|
IE9 mode only. An attempt is made to modify an object that cannot be changed. |
Exceptions
| Exception | Condition |
|---|---|
|
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
See also
Show:

