Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITextStoreACP2::GetFormattedText method

Gets formatted text data about a specified text string. The caller must have a read/write lock on the document before calling this method.

Syntax


HRESULT GetFormattedText(
  [in]  LONG        acpStart,
  [in]  LONG        acpEnd,
  [out] IDataObject **ppDataObject
);

Parameters

acpStart [in]

Specifies the starting character position of the text to get in the document.

acpEnd [in]

Specifies the ending character position of the text to get in the document. This parameter is ignored if the value is 1.

ppDataObject [out]

Receives the pointer to the IDataObject object that contains the formatted text.

Return value

This method can return one of these values.

ValueDescription
S_OK

The method was successful.

TS_E_NOLOCK

The caller does not have a read/write lock on the document.

 

Requirements

Minimum supported client

Windows 8 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2012 [desktop apps | Windows Store apps]

Header

Textstor.h

IDL

Textstor.idl

DLL

Msctf.dll

See also

ITextStoreACP2

 

 

Show:
© 2017 Microsoft