Returns a formatted version of the specified string.

Namespace:  Endeca.Web.UI
Assembly:  Endeca.Web (in Endeca.Web.dll) Version: 2.1.3.0 (2.1.3.622)

Syntax

C#
public static string Format<T>(
	string text,
	string formatValue
)
where T : IConvertible
Visual Basic (Declaration)
Public Shared Function Format(Of T As IConvertible) ( _
	text As String, _
	formatValue As String _
) As String
Visual C++
public:
generic<typename T>
where T : IConvertible
static String^ Format(
	String^ text, 
	String^ formatValue
)

Parameters

text
Type: System..::.String
String to format
formatValue
Type: System..::.String
Format string indicating the desired format. This must be a format understood by the type specified by T.

Type Parameters

T
Indicates the underlying type of text.

Exceptions

ExceptionCondition
System..::.ArgumentExceptionIf text is null or empty.
System..::.InvalidCastException If text is not convertible to T.

See Also