Click or drag to resize

ValuePropertyFormatterFormatValue Method (Object, ValuePropertyFormatter, IFormatProvider)

Formats a value property value to a string using the settings on the formatInfo object.

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public static string FormatValue(
	Object value,
	ValuePropertyFormatter formatInfo,
	IFormatProvider provider
)

Parameters

value
Type: SystemObject
Value to be formatted. value can contain either: string, int, datetime, double, bool or timespan. value can also be null. The datatype must correspond to the property datatype specified in formatInfo.
formatInfo
Type: Omada.OE.ModelValuePropertyFormatter
Controls how the value will be formatted.
provider
Type: SystemIFormatProvider
Controls which chars will be used as separators etc.

Return Value

Type: String
Returns the formatted string value.
See Also