Click to return to the Reusing Browser Technology home page    
IHTMLStyle::get_lineHeigh...     IHTMLStyle::get_listStyle...     IHTMLStyle Interface    
Web Workshop  |  Reusing Browser Technology

IHTMLStyle::get_listStyle Method


Retrieves the value of the listStyle property for the object.

Syntax

HRESULT get_listStyle(
    BSTR *p 
);

Parameters

p
Address of a variable that receives the value of the property. For details, see the listStyle property. The variable receives NULL if the property is not set.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The listStyle property is applicable only on objects that have the display property set to "list-item".

This method combines the functionality of the get_listStyleType, get_listStyleImage, and get_listStylePosition methods.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


IHTMLStyleIHTMLStyle::put_listStyle Method


Sets the value of the listStyle property for the object. The property determines how a list-item marker is drawn.

Syntax

HRESULT put_listStyle( 
    BSTR v 
);

Parameters

v
String that specifies the values of the property. For details, see the listStyle property. Set this parameter to NULL to remove the property.

Return Value

Returns S_OK if successful, or an error code otherwise.

Remarks

The listStyle property is applicable only on objects that have the display property set to "list-item".

This method combines the functionality of the get_listStyleType, get_listStyleImage, and get_listStylePosition methods.

If no type or position is specified, the default type is "disk" and the default position is "outside".

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.