Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.