ITextStoreAnchor::GetFormattedText method
The ITextStoreAnchor::GetFormattedText method returns formatted text information from a text stream.
Syntax
HRESULT GetFormattedText( [in] IAnchor *paStart, [in] IAnchor *paEnd, [out] IDataObject **ppDataObject );
Parameters
- paStart [in]
-
Anchor position at which to start retrieval of formatted text.
- paEnd [in]
-
Anchor position at which to end retrieval of formatted text.
- ppDataObject [out]
-
Pointer to the IDataObject object that contains the formatted text.
Return value
This method can return one of these values.
| Value | Description |
|---|---|
|
The method was successful. |
|
The method was unable to obtain a valid interface pointer to the start and/or end anchors. |
|
An application can return this value if the method is not implemented. |
|
The caller does not have a read/write lock on the document. |
Remarks
Text, embedded objects, and any formatting are wrapped into a single IDataObject object. In this way private appliation-specific formatting associated with text can be preserved by a client.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps | Windows Store apps] |
|
Redistributable |
TSF 1.0 on Windows 2000 Professional |
|
Header |
|
|
IDL |
|
|
DLL |
|
See also