Share via


DpiHelper.LogicalToDeviceUnitsX Method (Single)

Returns the closest value in logical units that are converted to an integer value when converted to horizontal device units.

Namespace:  Microsoft.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

Syntax

'Declaration
Public Shared Function LogicalToDeviceUnitsX ( _
    value As Single _
) As Single
public static float LogicalToDeviceUnitsX(
    float value
)
public:
static float LogicalToDeviceUnitsX(
    float value
)
static member LogicalToDeviceUnitsX : 
        value:float32 -> float32
public static function LogicalToDeviceUnitsX(
    value : float
) : float

Parameters

  • value
    Type: Single

    The single.

Return Value

Type: Single
The logical value to round.

.NET Framework Security

See Also

Reference

DpiHelper Class

LogicalToDeviceUnitsX Overload

Microsoft.VisualStudio.PlatformUI Namespace