RangeGravity enumeration

Applies to Windows and Windows Phone

Specifies the gravity for a text range.

Syntax


var value = Windows.UI.Text.RangeGravity.uiBehavior;

Attributes

[Version(0x06020000)]

Members

The RangeGravity enumeration has these members.

MemberValueDescription
UIBehavior | uiBehavior0

Use selection user interface rules.

Backward | backward1

Use the formatting of the previous text run when on a boundary between runs.

Forward | forward2

Use the formatting of the following text run when on a boundary between runs.

Inward | inward3

The start of the text range has forward gravity, and the end has backward gravity.

Outward | outward4

The start of the text range has backward gravity, and the end has forward gravity.

Remarks

The gravity of a text range determines which text run’s formatting is used by the ITextCharacterFormat and ITextParagraphFormat interfaces when the range is an insertion point between two runs.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Text
Windows::UI::Text [C++]

Metadata

Windows.winmd

See also

ITextRange.Gravity

 

 

Show:
© 2014 Microsoft