IHTMLUListElement::compact Property

Gets or sets a Boolean value indicating whether the list should be compacted by removing extra space between list objects.

Syntax


HRESULT IHTMLUListElement::get_compact(VARIANT_BOOL *p);HRESULT IHTMLUListElement::put_compact(VARIANT_BOOL v);

Parameters

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

Possible Values

VARIANT_TRUE Removes extra space between objects in list.
VARIANT_FALSE Default. Does not remove extra space between objects in list.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

There is no functionality implemented for the IHTMLUListElement::compact property for the ul, ol, dir and menu elements unless defined by the author.

In Microsoft Internet Explorer 6 and greater, this property applies to the menu and dir objects.

Community Additions

Show: