Muokkaa

Jaa


ZoomPercentageConverter.Convert(Object, Type, Object, CultureInfo) Method

Definition

Converts the Double (used as the value of Zoom) to an object of the specified type.

public:
 virtual System::Object ^ Convert(System::Object ^ value, Type ^ targetType, System::Object ^ parameter, System::Globalization::CultureInfo ^ culture);
public object Convert (object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
abstract member Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
override this.Convert : obj * Type * obj * System.Globalization.CultureInfo -> obj
Public Function Convert (value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object

Parameters

value
Object

The current value of Zoom.

targetType
Type

The type to which value is to be converted. This must be Double or String.

parameter
Object

null.

culture
CultureInfo

The language and culture assumed during the conversion.

Returns

UnsetValue when the converter cannot produce a value; for example, when value is null or when targetType is not Double or String.

-or-

The new Object of the designated type. As implemented in this class, this must be either a Double or a String. If it is a string, it will be formatted appropriately for the culture.

Implements

Remarks

UnsetValue may be returned to indicate that the converter produced no value and that the fallback (if available) or default value should be used instead.

Pass null for parameter. This parameter is required by the signature of Convert, and is used by some implementations to provide contextual information to the converter; but it is not used in this class.

Applies to