ClassRoundFileSizeConverter
Class
A converter that received a long value for file size and returns is formatted.
Definition
Namespace:Telerik.Windows.Controls.FileDialogs
Assembly:Telerik.Windows.Controls.FileDialogs.dll
Syntax:
cs-api-definition
public class RoundFileSizeConverter : IValueConverter
Inheritance: objectRoundFileSizeConverter
Implements:
Constructors
RoundFileSizeConverter()
Declaration
cs-api-definition
public RoundFileSizeConverter()
Methods
Convert(object, Type, object, CultureInfo)
Converts a file size value (long) to a string with value (number) (modifier) where 1<number<1024 and modifier is bytes/KB/MB/GB/TB. Parameter can be set to "KB" and the method would return the value converted only to KB.
Declaration
cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns
ConvertBack(object, Type, object, CultureInfo)
Declaration
cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
targetType
parameter
culture
Returns