IHTMLTxtRange::parentElementIHTMLTxtRange::parentElement*
*



Contents  *



Index  *Topic Contents
*Previous Topic: IHTMLTxtRange::moveToPoint
*Next Topic: IHTMLTxtRange::pasteHTML

IHTMLTxtRange::parentElement


HRESULT parentElement(
    IHTMLElement **Parent 
);

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

Parent
Address of a variable that receives an interface pointer for the parent element.

If the text range spans text in more than one element, the 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 within the parent element rather than in any of the contained elements.

See also IHTMLElement


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.