ITfRange::IsEmpty method
The ITfRange::IsEmpty method verifies that the range of text is empty because the start and end anchors occupy the same position.
Syntax
HRESULT IsEmpty(
[in] TfEditCookie ec,
[out] BOOL *pfEmpty
);
Parameters
- ec [in]
-
Edit cookie that identifies the edit context. It is obtained from ITfDocumentMgr::CreateContext or ITfEditSession::DoEditSession.
- pfEmpty [out]
-
Pointer to a Boolean value. TRUE indicates the range is empty; FALSE indicates the range is not empty.
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. |
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