Rect.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
Assembly:  System.Windows (in System.Windows.dll)

Syntax

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

Parameters

  • format
    Type: System.String
    The string specifying the format to use.
    -or-
    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.
    -or-
    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.

Implements

IFormattable.ToString(String, IFormatProvider)

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

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

Platforms

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