次の方法で共有


isBlock property

Gets a value that indicates whether the object is a block-level object.

Syntax

HRESULT value = object.get_isBlock(VARIANT_BOOL* p);

Property values

Type: VARIANT_BOOL

One of the values in the Property Values section.

Remarks

Block-level objects cause a line break before and after their content. Some objects, such as div objects and p objects, are block-level objects by default. Other objects become block-level objects when you can set their IHTMLStyle::display property to block.