IHTMLStyle7::cssFloat Property

New for Internet Explorer 9

[This documentation is preliminary and is subject to change.]

Gets or sets a value that specifies whether a box should float to the left, right, or not at all.

Syntax

HRESULT IHTMLStyle7::get_cssFloat(BSTR *p);
HRESULT IHTMLStyle7::put_cssFloat(BSTR v);

Parameters

  • p
    Pointer to a variable of type BSTR that receives one of the values listed in Possible Values.
  • v
    BSTR that specifies one of the values listed in Possible Values.

Possible Values

none Default. An object is displayed where it appears in the text.
left Text flows to the right of the object.
right Text flows to the left of the object.

Return Value

Returns one of the following values.

S_OK The operation completed successfully.
W3CException_DOM_SYNTAX_ERR An invalid string value is specified.
W3CException_DOM_NO_MODIFICATION_ALLOWED_ERR An attempt is made to modify an object that cannot be changed.

Remarks

The IHTMLStyle7::cssFloat attribute can be set for elements that generate boxes that are not absolutely positioned.

The IHTMLStyle7::cssFloat attribute corresponds to the float Cascading Style Sheets (CSS) property. Getting this attribute is equivalent to calling the IHTMLCSSStyleDeclaration::getProperty method. Setting this attribute is equivalent to calling the IHTMLCSSStyleDeclaration::setProperty method.