RangeGravity RangeGravity RangeGravity RangeGravity RangeGravity Enum

Definition

Specifies the gravity for a text range.

public : enum class RangeGravity
enum class winrt::Windows::UI::Text::RangeGravity : int32_t
public enum RangeGravity
Public Enum RangeGravity
var value = Windows.UI.Text.RangeGravity.backward;
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Fields

Backward Backward Backward Backward Backward 1

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

Forward Forward Forward Forward Forward 2

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

Inward Inward Inward Inward Inward 3

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

Outward Outward Outward Outward Outward 4

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

UIBehavior UIBehavior UIBehavior UIBehavior UIBehavior 0

Use selection user interface rules.

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.

See Also