Gets or sets one or two values that establish the origin of transformation for an element.
HRESULT IHTMLCSSStyleDeclaration::get_msTransformOrigin(BSTR *p);HRESULT IHTMLCSSStyleDeclaration::put_msTransformOrigin(BSTR v);
- Pointer to a variable of type BSTR that receives one or two of the following origin values, separated by whitespace.
- BSTR that specifies one or two of the following origin values, separated by whitespace.
left First value only. Equal to 0% or a zero length. center First value only. Equal to 50% or half the length of the box. right First value only. Equal to 100% or the full box length. top Second value only. Equal to 0% or a zero height. center Second value only. Equal to 50% or a half the height of the box. bottom Second value only. Equal to 100% or the full box height. position A floating-point number, followed by either an absolute units designator (
pc) or a relative units designator (
px), that indicates the origin of transformation. For more information about the supported length units, see CSS Length Units Reference.
percentage An integer, followed by a %. The value is a percentage of the total box length (for the first value) or the total box height (for the second value, if specified).
Returns S_OK if successful, or an error value otherwise.
If the IHTMLCSSStyleDeclaration::msTransformOrigin property is not set, the transform begins in the center (equal to a IHTMLCSSStyleDeclaration::msTransformOrigin value of
If only one value is specified, the second value is assumed to be