RangeGravity Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies the gravity for a text range.
public enum class RangeGravity
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class RangeGravity
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum RangeGravity
var value = Windows.UI.Text.RangeGravity.uIBehavior
Public Enum RangeGravity
- Inheritance
-
RangeGravity
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
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.