IHTMLTxtRange interface
This interface enables you to access the TextRange object in an HTML element.
Members
The IHTMLTxtRange interface inherits from the IDispatch interface but does not have additional members.
Remarks
The IHTMLTxtRange interface is used to retrieve and modify text in an element, locate specific strings in the text, and carry out commands that affect the appearance of the text.
You retrieve a TextRange object by using IHTMLBodyElement::createTextRange, IHTMLInputHiddenElement::createTextRange, IHTMLInputTextElement::createTextRange, IHTMLTextAreaElement::createTextRange, or IHTMLButtonElement::createTextRange. You can modify the extent of the text range by moving its start and end positions with methods such as IHTMLTxtRange::move, IHTMLTxtRange::moveToElementText, and IHTMLTxtRange::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.
Requirements
|
Minimum supported client | Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server | Windows 2000 Server [desktop apps only] |
|
Header |
|
|
IDL |
|
|
DLL |
|
Build date: 11/12/2012