Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
[in] paStart
Anchor position at which to start retrieval of formatted text.
[in] paEnd
Anchor position at which to end retrieval of formatted text.
[out] ppDataObject
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 application-specific formatting associated with text can be preserved by a client.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
| Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | textstor.h |
| DLL | Msctf.dll |
| Redistributable | TSF 1.0 on Windows 2000 Professional |