Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FormattableString::Format Property

.NET Framework (current version)
 

Returns the composite format string.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ Format {
	virtual String^ get() abstract;
}

Property Value

Type: System::String^

The composite format string.

A composite format string consists of zero or more runs of fixed text intermixed with one or more format items, which are indicated by an index number delimited with brackets (for example, {0}). The index of each format item corresponds to an argument in an object list that follows the composite format string. For example, in the following statement:

No code example is currently available or this language may not be supported.

the composite format string is "Name = {0}, hours = {1:hh}".

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show:
© 2017 Microsoft