String.Format Method
Replaces each format item in a specified String with the text equivalent of a corresponding object's value.
Overload List

Name Description
String.Format (String, Object) Replaces the format item in a specified String with the text equivalent of the value of a specified Object instance.

Supported by the .NET Compact Framework.

String.Format (String, Object[]) Replaces the format item in a specified String with the text equivalent of the value of a corresponding Object instance in a specified array.

Supported by the .NET Compact Framework.

String.Format (IFormatProvider, String, Object[]) Replaces the format item in a specified String with the text equivalent of the value of a corresponding Object instance in a specified array. A specified parameter supplies culture-specific formatting information.

Supported by the .NET Compact Framework.

String.Format (String, Object, Object) Replaces the format item in a specified String with the text equivalent of the value of two specified Object instances.

Supported by the .NET Compact Framework.

String.Format (String, Object, Object, Object) Replaces the format item in a specified String with the text equivalent of the value of three specified Object instances.

Supported by the .NET Compact Framework.

See Also

Tags :


Community Content

Chris McKenzie
Kathy Kam has more detail

This post has detailed information on the various kinds of formatting options that are available with String.Format()

http://blogs.msdn.com/kathykam/archive/2006/03/29/564426.aspx

Tags :

Reman
Formatting Strings in C#

A nice overview about formatting strings in c#

http://blog.stevex.net/index.php/string-formatting-in-csharp/

Tags : c# string mytag

Page view tracker