IMarkupTextFrags interface
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).
Members
The IMarkupTextFrags interface inherits from the IUnknown interface. IMarkupTextFrags also has these types of members:
- Methods
Methods
The IMarkupTextFrags interface has these methods.
Method | Description |
---|---|
FindTextFragFromMarkupPointer | Looks for a markup text fragment at the location of a specified markup pointer. |
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. |
Remarks
To obtain an IMarkupTextFrags interface, call QueryInterface on the IMarkupContainer interface in which the text fragments are to be placed, using IID_IMarkupTextFrags for the IID.
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.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mshtml.h |
IDL |
Mshtml.idl |
DLL |
Mshtml.dll |