canHaveChildren property

[This documentation is preliminary and is subject to change.]

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

Syntax

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

Property values

Type: VARIANT_BOOL

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

 

 

Build date: 6/6/2012

Community Additions

Show:
© 2015 Microsoft