This interface provides methods that enable you to insert and remove text from a markup container that is not a part of the actual markup in the container. These text fragments are attached to the content of a markup container, but are not a part of the container itself. They are not represented in the tree for the document. They are, however, saved to the document when the document is saved (for instance, by sending the command IDM_SAVE or IDM_SAVEAS through the IOleCommandTarget interface).
FindTextFragFromMarkupPointer Looks for a markup text fragment at the location of a specified markup pointer. GetTextFrag Retrieves the text fragment for a specified index and positions a markup pointer at the fragment's location. GetTextFragCount Retrieves a count of the markup text fragments in a markup container. InsertTextFrag Inserts a new markup text fragment at a specified markup pointer. RemoveTextFrag Removes the specified markup text fragment.
Markup text fragments were developed as a way to handle conditional comments in a saved document. When you open a document containing conditional fragments in the editor, the conditional comments are converted to text fragments. This occurs only in editing mode, not browse mode.
Stock Implementation mshtml.dll Custom Implementation No Inherits from IUnknown Header and IDL files mshtml.h, mshtml.idl Minimum availability Internet Explorer 5.5 Minimum operating systems Windows 95, Windows NT 4.0, Windows CE 4.0