Freigeben über


ZoomLevelConverter.Convert Method

Converts the zoom level from double to string.

Namespace:  Microsoft.VisualStudio.Text.Editor
Assembly:  Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)

Syntax

'Declaration
Public Function Convert ( _
    value As Object, _
    targetType As Type, _
    parameter As Object, _
    culture As CultureInfo _
) As Object
public Object Convert(
    Object value,
    Type targetType,
    Object parameter,
    CultureInfo culture
)
public:
virtual Object^ Convert(
    Object^ value, 
    Type^ targetType, 
    Object^ parameter, 
    CultureInfo^ culture
) sealed
abstract Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object 
override Convert : 
        value:Object * 
        targetType:Type * 
        parameter:Object * 
        culture:CultureInfo -> Object 
public final function Convert(
    value : Object, 
    targetType : Type, 
    parameter : Object, 
    culture : CultureInfo
) : Object

Parameters

  • targetType
    Type: System.Type
    The type of the binding target property.

Return Value

Type: System.Object
The string representation of the zoom level. Returns UnsetValue if the conversion fails.

Implements

IValueConverter.Convert(Object, Type, Object, CultureInfo)

Remarks

The zoom level is represented as a number %. This converter takes in a double value and formats it with a % symbol.

.NET Framework Security

See Also

Reference

ZoomLevelConverter Class

Microsoft.VisualStudio.Text.Editor Namespace