Partager via


DpiAwareness.DeviceToLogicalUnitsY Method

Definition

Overloads

DeviceToLogicalUnitsY(Visual, UInt16)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt32)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt64)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Single)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int16)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int32)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Double)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, Int64)

Converts a y-coordinate (or vertical) value from device units to logical units.

DeviceToLogicalUnitsY(Visual, UInt16)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt16 DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, System::UInt16 value);
public static ushort DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, ushort value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * uint16 -> uint16
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, UInt32)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt32 DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, System::UInt32 value);
public static uint DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, uint value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * uint32 -> uint32
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, UInt64)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static System::UInt64 DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, System::UInt64 value);
public static ulong DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, ulong value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * uint64 -> uint64
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, Single)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static float DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, float value);
public static float DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, float value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * single -> single
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, Int16)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static short DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, short value);
public static short DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, short value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * int16 -> int16
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, Int32)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static int DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, int value);
public static int DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, int value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * int -> int
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, Double)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static double DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, double value);
public static double DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, double value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * double -> double
<Extension()>
Public Function DeviceToLogicalUnitsY (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

DeviceToLogicalUnitsY(Visual, Int64)

Converts a y-coordinate (or vertical) value from device units to logical units.

public:
[System::Runtime::CompilerServices::Extension]
 static long DeviceToLogicalUnitsY(System::Windows::Media::Visual ^ visual, long value);
public static long DeviceToLogicalUnitsY (this System.Windows.Media.Visual visual, long value);
static member DeviceToLogicalUnitsY : System.Windows.Media.Visual * int64 -> int64
<Extension()>
Public Function DeviceToLogicalUnitsY (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