IHTMLIFrameElement::align Property
Sets or retrieves a value that indicates the table alignment.
Syntax
HRESULT IHTMLIFrameElement::get_align(BSTR *p); HRESULT IHTMLIFrameElement::put_align(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
left Aligns to the left edge of the available space. center Aligns to the center of the available space, which is not necessarily the same as the window. right Aligns to the right edge of the available space.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
If the IHTMLIFrameElement::align property is not set on the object, the table is aligned to the left edge of the available space as a block element. If the property is set to
leftorright, however, the table is aligned as a "floating" object. Successive text and other elements flow to the right of the table if IHTMLIFrameElement::align is set toleft, or to the left of the table if IHTMLIFrameElement::align is set toright. For more information, see the styleFloat property.