RangeGravity
RangeGravity
RangeGravity
RangeGravity
Enum
Definition
Specifies the gravity for a text range.
public : enum class RangeGravitypublic enum RangeGravityPublic Enum RangeGravity// You can use this enum in JavaScript.
- 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 | Use the formatting of the previous text run when on a boundary between runs. |
| Forward Forward Forward Forward | Use the formatting of the following text run when on a boundary between runs. |
| Inward Inward Inward Inward | The start of the text range has forward gravity, and the end has backward gravity. |
| Outward Outward Outward Outward | The start of the text range has backward gravity, and the end has forward gravity. |
| UIBehavior UIBehavior UIBehavior UIBehavior | 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.