RingSoft.DbLookup Namespace
RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbMaintenance Namespace

GblMethods..::..FormatValue Method

Formats the value.

Namespace:  RingSoft.DbLookup
Assembly:  RingSoft.DbLookup (in RingSoft.DbLookup.dll)

Syntax


public static string FormatValue(
	FieldDataTypes dataType,
	string value,
	string formatString,
	CultureInfo culture,
	bool convertToLocalTime
)
Public Shared Function FormatValue ( _
	dataType As FieldDataTypes, _
	value As String, _
	formatString As String, _
	culture As CultureInfo, _
	convertToLocalTime As Boolean _
) As String
public:
static String^ FormatValue(
	FieldDataTypes^ dataType, 
	String^ value, 
	String^ formatString, 
	CultureInfo^ culture, 
	bool^ convertToLocalTime
)

Parameters

dataType
Type: RingSoft.DbLookup..::..FieldDataTypes
Type of the data.
value
Type: String
The value to format.
formatString
Type: String
The format string.
culture
Type: CultureInfo
The culture.
convertToLocalTime
Type: Boolean
if set to true [convert to local time].

Return Value

System.String.

Exceptions


ExceptionCondition
ArgumentOutOfRangeException