Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

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:
© 2014 Microsoft. All rights reserved.