Windows apps
Collapse the table of content
Expand the table of content
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.

FontWeight.IFormattable.ToString Method (String, IFormatProvider)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

For a description of this member, see IFormattable.ToString.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

string IFormattable.ToString(
	string format,
	IFormatProvider provider


Type: System.String

The String specifying the format to use.


null to use the default format defined for the type of the IFormattable implementation.

Type: System.IFormatProvider

The IFormatProvider to use to format the value.


null to obtain the numeric format information from the current locale setting of the operating system.

Return Value

Type: System.String

A String containing the value of the current instance in the specified format.

.NET Framework
Available since 3.0
Return to top
© 2018 Microsoft