IMarkupPointer::SetGravity Method
Sets the gravity attribute of this pointer.
Syntax
HRESULT SetGravity( POINTER_GRAVITY Gravity );
Parameters
- Gravity
[in] POINTER_GRAVITY enumeration value that specifies the gravity attribute of this pointer.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
Pointer gravity determines whether a markup pointer will stay with the markup to its right or left when markup is inserted at the pointer's location. By default, markup pointers have "left gravity": that is, they will stay with the markup to their left when text is inserted at the pointer's location.
See Also