Επεξεργασία

Κοινή χρήση μέσω


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

Definition

Returns a previously converted value of Zoom back to a Double that can be assigned to Zoom.

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

Parameters

value
Object

The object that is to be converted back to a Double.

targetType
Type

The type of value. 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 not a valid percentage when targetType is not Double or String.

-or-

A Double representing the zoom percentage of a DocumentViewer.

Implements

Remarks

The data binding engine calls this method when it moves a value from the binding target to the binding source.

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 ConvertBack, and is used by some implementations to provide contextual information to the converter; but it is not used in this class.

Applies to