ITfRange::GetText method
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
- ec [in]
-
Edit cookie that identifies the edit context obtained from ITfDocumentMgr::CreateContext or ITfEditSession::DoEditSession.
- dwFlags [in]
-
Bit fields that specify optional behavior.
- pchText [out]
-
Pointer to a buffer to receive the text in the range.
- cchMax [in]
-
Maximum size of the text buffer.
- pcch [out]
-
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
|
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