Gets the x-coordinate of the IHTMLStyle::backgroundPosition property.
HRESULT IHTMLCurrentStyle::get_backgroundPositionX(VARIANT *p);
- Pointer to a variable of type VARIANT of type VT_BSTR that receives one of the values listed in Possible Values.
length Floating-point number, followed by an absolute units designator (
pc) or a relative units designator (
px). For more information about the supported length units, see CSS Length Units Reference.
percentage Integer, followed by a percent sign (%). The value is a percentage of the width or height of the object. hAlignment Horizontal alignment value. Possible values include the following:leftHorizontal alignment is to the left.centerHorizontal alignment is centered.rightHorizontal alignment is to the right.
Returns S_OK if successful, or an error value otherwise.
Windows Internet Explorer 8. The -ms-background-position-x attribute is an extension to CSS, and can be used as a synonym for background-position-x in IE8 Standards mode.