Contents Index Topic Contents | ||
Previous Topic: IHTMLTitleElement::put_text Next Topic: IHTMLTxtRange::collapse |
IHTMLTxtRange
This interface provides the ability to access the text range object in an HTML element. You use this interface to retrieve and modify text in an element, to locate specific strings in the text, and to carry out commands that affect the appearance of the text.
You retrieve a text range object by using the createTextRange method of the IHTMLBodyElement, IHTMLInputHiddenElement, IHTMLInputTextElement, IHTMLTextAreaElement, or IHTMLButtonElement interface. You can modify the extent of the text range by moving its start and end positions with methods such as move, moveToElementText, and findText. Within the text range, you can retrieve and modify plain text or HTML text. These forms of text are identical except that HTML text includes HTML tags; plain text does not.
IHTMLTxtRange Methods
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.