Partager via


DpiAwareness.LogicalToDeviceUnitsY Method

Definition

Overloads

LogicalToDeviceUnitsY(Visual, UInt64)

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

LogicalToDeviceUnitsY(Visual, UInt32)

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

LogicalToDeviceUnitsY(Visual, UInt16)

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

LogicalToDeviceUnitsY(Visual, Single)

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

LogicalToDeviceUnitsY(Visual, Int32)

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

LogicalToDeviceUnitsY(Visual, Int16)

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

LogicalToDeviceUnitsY(Visual, Double)

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

LogicalToDeviceUnitsY(Visual, Int64)

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

LogicalToDeviceUnitsY(Visual, UInt64)

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

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

LogicalToDeviceUnitsY(Visual, UInt32)

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

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

LogicalToDeviceUnitsY(Visual, UInt16)

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

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

LogicalToDeviceUnitsY(Visual, Single)

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

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

LogicalToDeviceUnitsY(Visual, Int32)

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

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

LogicalToDeviceUnitsY(Visual, Int16)

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

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

LogicalToDeviceUnitsY(Visual, Double)

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

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

LogicalToDeviceUnitsY(Visual, Int64)

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

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