Upravit

Sdílet prostřednictvím


Rect.IFormattable.ToString(String, IFormatProvider) Method

Definition

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

 virtual System::String ^ System.IFormattable.ToString(System::String ^ format, IFormatProvider ^ provider) = IFormattable::ToString;
string IFormattable.ToString (string format, IFormatProvider provider);
abstract member System.IFormattable.ToString : string * IFormatProvider -> string
override this.System.IFormattable.ToString : string * IFormatProvider -> string
Function ToString (format As String, provider As IFormatProvider) As String Implements IFormattable.ToString

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

See also