ITfRange::SetGravity method
Syntax
HRESULT SetGravity( [in] TfEditCookie ec, [in] TfGravity gStart, [in] TfGravity gEnd );
Parameters
- ec [in]
-
Contains an edit cookie that identifies the edit context obtained from ITfDocumentMgr::CreateContext or ITfEditSession::DoEditSession.
- gStart [in]
-
Contains one of the TfGravity values that specifies the gravity of the start anchor.
- gEnd [in]
-
Contains one of the TfGravity values that specifies the gravity of the end anchor.
Return value
This method can return one of these values.
| Value | Description |
|---|---|
|
The method was successful. |
|
An unspecified error occurred. |
|
The cookie in ec is invalid. |
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
- Anchor Gravity
- ITfDocumentMgr::CreateContext
- ITfEditSession::DoEditSession
- ITfRange
- ITfRange::GetGravity
- TfGravity