Partager via


DeviceToLogicalPixelConverter.Convert Method (Int32, Object, CultureInfo)

Converts a device coordinate component provided in 'value' parameter to logical pixel component. Note that 'parameter' parameter need to be either HorizontalAxis or VerticalAxis to determine which axis is going to be used for the conversion.

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

Syntax

'Déclaration
Protected Overrides Function Convert ( _
    value As Integer, _
    parameter As Object, _
    culture As CultureInfo _
) As Double
'Utilisation
Dim value As Integer
Dim parameter As Object
Dim culture As CultureInfo
Dim returnValue As Double

returnValue = Me.Convert(value, parameter, _
    culture)
protected override double Convert(
    int value,
    Object parameter,
    CultureInfo culture
)
protected:
virtual double Convert(
    int value, 
    Object^ parameter, 
    CultureInfo^ culture
) override
abstract Convert : 
        value:int * 
        parameter:Object * 
        culture:CultureInfo -> float 
override Convert : 
        value:int * 
        parameter:Object * 
        culture:CultureInfo -> float 
protected override function Convert(
    value : int, 
    parameter : Object, 
    culture : CultureInfo
) : double

Parameters

Return Value

Type: System.Double

.NET Framework Security

See Also

Reference

DeviceToLogicalPixelConverter Class

DeviceToLogicalPixelConverter Members

Convert Overload

Microsoft.VisualStudio.PlatformUI Namespace