ContentCoordinateRoundingMode Enum

Definition

Specifies the rounding methods used for converting screen coordinates (float to integer).

public enum class ContentCoordinateRoundingMode
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65540)]
enum class ContentCoordinateRoundingMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65540)]
public enum ContentCoordinateRoundingMode
var value = Microsoft.UI.Content.ContentCoordinateRoundingMode.auto
Public Enum ContentCoordinateRoundingMode
Inheritance
ContentCoordinateRoundingMode
Attributes

Fields

Auto 0

Use the current floating-point unit (FPU) setting. Default.

Ceiling 3

Rounds up to the smallest integer greater than or equal to the provided floating point number.

Floor 1

Rounds down to the largest integer less than or equal to the provided floating point number.

Round 2

Rounds up or down, depending on the value of the provided floating point number.

Applies to

See also