FileSizeToStringConverterConvert Method |
Converts an
Int64 value
to a formatted
String that represents the size of a file.
Namespace: Kjs.AppLife.Update.Wpf.ConvertersAssembly: Kjs.AppLife.Update.Wpf (in Kjs.AppLife.Update.Wpf.dll) Version: 5.1.0.0 (5.1.0.0)
Syntaxpublic Object Convert(
Object value,
Type targetType,
Object parameter,
CultureInfo culture
)
Public Function Convert (
value As Object,
targetType As Type,
parameter As Object,
culture As CultureInfo
) As Object
public:
virtual Object^ Convert(
Object^ value,
Type^ targetType,
Object^ parameter,
CultureInfo^ culture
) sealed
abstract Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
override Convert :
value : Object *
targetType : Type *
parameter : Object *
culture : CultureInfo -> Object
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:
ObjectA
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