Share via


RangeGravity Enum

Definition

Specifies the gravity for a text range.

public enum class RangeGravity
/// [Windows.Foundation.Metadata.Version(1)]
enum class RangeGravity
[Windows.Foundation.Metadata.Version(1)]
public enum RangeGravity
var value = Microsoft.UI.Text.RangeGravity.uIBehavior
Public Enum RangeGravity
Inheritance
RangeGravity
Attributes

Fields

Name Value Description
UIBehavior 0

Use selection user interface rules.

Backward 1

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

Forward 2

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

Inward 3

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

Outward 4

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.

Applies to

See also