Contents Index Topic Contents | ||
Previous Topic: IHTMLRuleStyle::put_listStyle Next Topic: IHTMLRuleStyle::put_whiteSpace |
IHTMLRuleStyle::get_listStyle
HRESULT get_listStyle( BSTR *p );Retrieves the value of the CSS list-style 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. The variable receives NULL if the attribute is not set. See list-style for details.
The list-style attribute is applicable only on elements that have the display attribute set to "list-item".
This function combines the functionality of the get_listStyleType, get_listStyleImage, and get_listStylePosition functions.
See also put_listStyle
IHTMLRuleStyle::put_listStyle
HRESULT put_listStyle( BSTR v );Sets the value of the CSS list-style attribute for the element. The attribute determines how a list-item marker is drawn.
- Returns S_OK if successful, or an error value otherwise.
- v
- String specifying the values of the attribute. Set this parameter to NULL to remove the attribute. See list-style for details.
The list-style attribute is applicable only on elements that have the display attribute set to "list-item". This property can be set on any element and is inherited down the tree. In HTML, this is typically the case for the LI element.
This function combines the functionality of the put_listStyleType, put_listStyleImage, and put_listStylePosition functions.
If no type or position is specified, the default type is "disk" and the default position is "outside".
See also get_listStyle
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.