IAnchor::GetGravity method (textstor.h)

The IAnchor::GetGravity method retrieves the gravity of the anchor in an IAnchor object.

Syntax

HRESULT GetGravity(
  [out] TsGravity *pgravity
);

Parameters

[out] pgravity

Pointer that receives a TsGravity value that specifies the anchor gravity.

Return value

This method can return one of these values.

Value Description
S_OK
The method was successful.
E_INVALIDARG
The pgravity pointer is invalid.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header textstor.h
DLL Msctf.dll
Redistributable TSF 1.0 on Windows 2000 Professional

See also

Anchor Gravity

IAnchor

IAnchor::SetGravity

TsGravity