Freigeben über


DpiAwareness.DeviceToLogicalUnitsX Method

Definition

Overloads

DeviceToLogicalUnitsX(Visual, UInt64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Single)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Double)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, Int64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

DeviceToLogicalUnitsX(Visual, UInt64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt64 DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, System::UInt64 value);
public static ulong DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, ulong value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * uint64 -> uint64
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As ULong) As ULong

Parameters

visual
Visual

The Visual with which to convert the given value.

value
UInt64

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, UInt32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt32 DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, System::UInt32 value);
public static uint DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, uint value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * uint32 -> uint32
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As UInteger) As UInteger

Parameters

visual
Visual

The Visual with which to convert the given value.

value
UInt32

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, UInt16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt16 DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, System::UInt16 value);
public static ushort DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, ushort value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * uint16 -> uint16
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As UShort) As UShort

Parameters

visual
Visual

The Visual with which to convert the given value.

value
UInt16

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, Single)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static float DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, float value);
public static float DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, float value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * single -> single
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As Single) As Single

Parameters

visual
Visual

The Visual with which to convert the given value.

value
Single

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, Int16)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static short DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, short value);
public static short DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, short value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * int16 -> int16
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As Short) As Short

Parameters

visual
Visual

The Visual with which to convert the given value.

value
Int16

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, Int32)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static int DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, int value);
public static int DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, int value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * int -> int
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As Integer) As Integer

Parameters

visual
Visual

The Visual with which to convert the given value.

value
Int32

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, Double)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static double DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, double value);
public static double DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, double value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * double -> double
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As Double) As Double

Parameters

visual
Visual

The Visual with which to convert the given value.

value
Double

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to

DeviceToLogicalUnitsX(Visual, Int64)

Converts an x-coordinate (or horizontal) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static long DeviceToLogicalUnitsX(System::Windows::Media::Visual ^ visual, long value);
public static long DeviceToLogicalUnitsX (this System.Windows.Media.Visual visual, long value);
static member DeviceToLogicalUnitsX : System.Windows.Media.Visual * int64 -> int64
<Extension()>
Public Function DeviceToLogicalUnitsX (visual As Visual, value As Long) As Long

Parameters

visual
Visual

The Visual with which to convert the given value.

value
Int64

The value to convert.

Returns

The value as a logical unit.

Remarks

Non-floating-point overloads will peform nearest value rounding as opposed to floor rounding because it allows for more accurate rounding-tripping of values when converting back and forth between logical and device units.

Applies to