canHaveChildren property

Gets a value indicating whether the object can contain child objects.

Syntax

HRESULT value = object.get_canHaveChildren(* p);

Property values

Type: VARIANT_BOOL

Indicates whether the object can contain child objects.

VARIANT_FALSE (false)

The object cannot be a parent to child objects.

VARIANT_TRUE (true)

The object can be a parent to child objects.

Remarks

Objects do not have to contain children for the IHTMLElement2::canHaveChildren property to return true. This property is useful in determining whether objects can be appended as children.

See also

Reference

IHTMLDOMNode::appendChild

IHTMLDocument2::createElement

IHTMLDocument3::createTextNode