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
‘선언
Protected Overrides Function Convert ( _
value As Integer, _
parameter As Object, _
culture As CultureInfo _
) As Double
‘사용 방법
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
- value
Type: System.Int32
- parameter
Type: System.Object
- culture
Type: System.Globalization.CultureInfo
Return Value
Type: System.Double
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
DeviceToLogicalPixelConverter Class