TXTextControl.WPF.MeasureConverter.Convert Method

Converts a value from twips to another meaasuring unit.


public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture);
[Visual Basic]
Public Function Convert(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
Member Description

The value produced by the binding source. It must be an object of the type System.Int32 and the measuring unit must be twips (1/20 point).


The type of the binding target property. It must be a string or a double.


The converter parameter to use. This converter does not use parameter.


The culture to use in the converter.

Return Value

A converted value, a string or a double. The method returns DependencyProperty.UnsetValue, if the conversion is not possible.

See Also