Class RoundFileSizeConverter
A converter that received a long value for file size and returns is formatted.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.FileDialogs
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RoundFileSizeConverter
Constructors
RoundFileSizeConverter()
Declaration
public RoundFileSizeConverter()
Methods
ConvertToString(Nullable<Int64>, Object)
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
public static string ConvertToString(long? value, object parameter)
Parameters
System.Nullable<System.Int64>
value
|
System.Object
parameter
|
Returns
System.String
|