Color.IFormattable.ToString Method

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

For a description of this member, see ToString.

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


Private Function ToString ( _
    format As String, _
    provider As IFormatProvider _
) As String Implements IFormattable.ToString
string IFormattable.ToString(
    string format,
    IFormatProvider provider


  • format
    Type: System.String
    The string specifying the format to use.
    nulla null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.
  • provider
    Type: System.IFormatProvider
    The IFormatProvider to use to format the value.
    nulla null reference (Nothing in Visual Basic) 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.


IFormattable.ToString(String, IFormatProvider)

Version Information


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.