Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
Previous Versions
.NET Framework 3.0
Class Library
System
String Class
String Methods
Format Method
Collapse All/Expand All Collapse All
String.Format Method
Replaces each format item in a specified String with the text equivalent of a corresponding object's value.
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.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Kathy Kam has more detail      Chris McKenzie   |   Edit   |   Show History

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 What's this?: Add a tag
Flag as ContentBug
Formatting Strings in C#      Reman   |   Edit   |   Show History

A nice overview about formatting strings in c#

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

Tags What's this?: c# (x) mytag (x) string (x) Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker