Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
parentElement

parentElement method

Retrieves the parent element for the given text range.

Syntax


IHTMLElement retVal = object.parentElement();

Parameters

This method has no parameters.

Standards information

There are no standards that apply here.

Remarks

The parent element is the element that completely encloses the text in the range.

If the text range spans text in more than one element, this method returns the smallest element that encloses all the elements. When you insert text into a range that spans multiple elements, the text is placed in the parent element rather than in any of the contained elements.

This feature might not be available on non-Microsoft Win32 platforms.

 

 

Community Additions

ADD
Show:
© 2015 Microsoft