This topic has not yet been rated - Rate this topic

# IHTMLCSSStyleDeclaration::msTransform Property

Gets or sets a list of one or more transform functions that specify how to translate, rotate, or scale an element in 2-D space.

Syntax

```
HRESULT IHTMLCSSStyleDeclaration::get_msTransform(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_msTransform(BSTR v);
```

Parameters

p
Pointer to a variable of type BSTR that receives one or more transformation functions (listed in Remarks), separated by whitespace, applied in the order specified.
v
BSTR that specifies one or more transformation functions (listed in Remarks), separated by whitespace, applied in the order specified.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The client supports the following transformation functions for use with the IHTMLCSSStyleDeclaration::msTransform property:

• The matrix(a,b,c,d,e,f) function specifies a 2-D transformation in the form of a transformation matrix of six values ( a through f ).
• The translate(tx,ty) function specifies a 2-D translation by the vector [ tx , ty ], where tx is the first translation-value parameter and ty is the optional second translation-value parameter. If ty is not specified, its value is zero. (Translation-value parameters can be either percentages or lengths.)
• The translateX(tx) function specifies a translation by the given amount in the x direction.
• The translateY(ty) function specifies a translation by the given amount in the y direction.
• The scale(sx,sy) function specifies a 2-D scale operation by the [ sx , sy ] scaling vector that is described by the two parameters. If the second parameter is not provided, it takes a value equal to the first.
• The scaleX(sx) function specifies a scale operation by using the [ sx ,1] scaling vector, where sx is given as the parameter.
• The scaleY(sy) function specifies a scale operation by using the [1, sy ] scaling vector, where sy is given as the parameter.
• The rotate(angle) function specifies a 2-D rotation by the angle specified in the parameter about the origin of the element, as defined by the IHTMLCSSStyleDeclaration::msTransformOrigin property.
• The skewX(ax) function specifies a skew transformation along the x -axis by the given angle.
• The skewY(ay) function specifies a skew transformation along the y -axis by the given angle.
• The skew(ax,ay) function specifies a skew transformation along the x and y axes. The first angle parameter specifies the skew on the x -axis. The second angle parameter specifies the skew on the y -axis. If the second parameter is not given, a value of zero is used for the y angle (that is, no skew on the y -axis).