New to Telerik UI for WinFormsStart a free 30-day trial

A converter that received a long value for file size and returns is formatted.

Definition

Namespace:Telerik.WinControls.FileDialogs

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RoundFileSizeConverter

Inheritance: objectRoundFileSizeConverter

Constructors

C#
public RoundFileSizeConverter()

Methods

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.

C#
public static string ConvertToString(long? value, object parameter)
Parameters:valuelong?parameterobjectReturns:

string