Contents Index Topic Contents | ||
Previous Topic: IHTMLStyle::get_top Next Topic: IHTMLStyle::get_visibility |
IHTMLStyle::get_verticalAlign
HRESULT get_verticalAlign( VARIANT *p );Retrieves the value of the CSS vertical-align attribute for the element.
- Returns S_OK if successful, or an error value otherwise.
- p
- Address of a variable that receives the value of the attribute, or NULL if the attribute is not set. Can be one of these strings:
baseline middle sub super text-top text-bottom top bottom - See vertical-align for details.
See also put_verticalAlign
IHTMLStyle::put_verticalAlign
HRESULT put_verticalAlign( VARIANT v );Sets the value of the CSS vertical-align attribute for the element. The attribute determines the vertical positioning of the element.
- Returns S_OK if successful, or an error value otherwise.
- v
- String or value specifying the vertical alignment. Can be a percentage (either positive or negative) of the line height of the element, or one of the values below. These values are relative to the parent element:
baseline middle sub super text-top text-bottom - These values are relative to the formatted line of which the element is a part:
top bottom - See vertical-align for details. Set this parameter to NULL to remove the attribute.
See also get_verticalAlign
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.