Edit

Share via


Rect.IFormattable.ToString(String, IFormatProvider) Method

Definition

Formats the value of the current instance using the specified format.

C#
string IFormattable.ToString(string format, IFormatProvider provider);

Parameters

format
String

The format to use.

-or-

A null reference (Nothing in Visual Basic) to use the default format defined for the type of the IFormattable implementation.

provider
IFormatProvider

The provider to use to format the value.

-or-

A null reference (Nothing in Visual Basic) to obtain the numeric format information from the current locale setting of the operating system.

Returns

A string representation of the rectangle.

Implements

Remarks

This member is an explicit interface member implementation. It can be used only when the Rect instance is cast to an IFormattable interface.

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also