Click or drag to resize
FileSizeToStringConverterConvert Method
Converts an Int64 value to a formatted String that represents the size of a file.

Namespace: Kjs.AppLife.Update.Wpf.Converters
Assembly: Kjs.AppLife.Update.Wpf (in Kjs.AppLife.Update.Wpf.dll) Version: 5.1.0.0 (5.1.0.0)
Syntax
public Object Convert(
	Object value,
	Type targetType,
	Object parameter,
	CultureInfo culture
)

Parameters

value
Type: SystemObject
The Int64 value to convert.
targetType
Type: SystemType
This parameter is not used.
parameter
Type: SystemObject
This parameter is not used.
culture
Type: System.GlobalizationCultureInfo
Culture information.

Return Value

Type: Object
A String that contains value converted to a unit of data (bytes, KB, MB or GB) appropriate to its size. For example, if value is 4,583, this method would return "4.48 KB".

Implements

IValueConverterConvert(Object, Type, Object, CultureInfo)
See Also