ITfRange::GetText method (msctf.h)
The ITfRange::GetText method obtains the content covered by this range of text.
Syntax
HRESULT GetText(
[in] TfEditCookie ec,
[in] DWORD dwFlags,
[out] WCHAR *pchText,
[in] ULONG cchMax,
[out] ULONG *pcch
);
Parameters
[in] ec
Edit cookie that identifies the edit context obtained from ITfDocumentMgr::CreateContext or ITfEditSession::DoEditSession.
[in] dwFlags
Bit fields that specify optional behavior.
[out] pchText
Pointer to a buffer to receive the text in the range.
[in] cchMax
Maximum size of the text buffer.
[out] pcch
Pointer to a ULONG representing the number of characters written to the pchText text buffer.
Return value
This method can return one of these values.
Value | Description |
---|---|
|
The method was successful. |
|
An unspecified error occurred. |
|
One or more parameters are invalid. |
|
The value of the ec parameter is an invalid cookie, or the caller does not have a read-only lock. |
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 | msctf.h |
DLL | Msctf.dll |
Redistributable | TSF 1.0 on Windows 2000 Professional |