次の方法で共有


DpiAwareness.LogicalToDeviceUnitsX Method

Definition

Overloads

LogicalToDeviceUnitsX(Visual, UInt64)

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

LogicalToDeviceUnitsX(Visual, UInt16)

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

LogicalToDeviceUnitsX(Visual, Single)

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

LogicalToDeviceUnitsX(Visual, UInt32)

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

LogicalToDeviceUnitsX(Visual, Int32)

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

LogicalToDeviceUnitsX(Visual, Int16)

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

LogicalToDeviceUnitsX(Visual, Double)

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

LogicalToDeviceUnitsX(Visual, Int64)

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

LogicalToDeviceUnitsX(Visual, UInt64)

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

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

LogicalToDeviceUnitsX(Visual, UInt16)

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

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

LogicalToDeviceUnitsX(Visual, Single)

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

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

LogicalToDeviceUnitsX(Visual, UInt32)

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

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

LogicalToDeviceUnitsX(Visual, Int32)

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

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

LogicalToDeviceUnitsX(Visual, Int16)

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

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

LogicalToDeviceUnitsX(Visual, Double)

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

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

LogicalToDeviceUnitsX(Visual, Int64)

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

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