Redigeeri

Jagamisviis:


Rect.ToString Method

Definition

Overloads

ToString()

Returns a string representation of the Rect struct.

ToString(IFormatProvider)

Returns a string representation of the rectangle by using the specified format provider.

Remarks

This struct represents the .NET projection of the Windows Runtime (WinRT) Rect struct. For more information, see Rect in the UWP API reference.

For more information and examples of this member, see Rect.ToString in the .NET Framework API reference. (Examples show WPF usage and might not translate directly to UWP XAML.)

ToString()

Returns a string representation of the Rect struct.

public:
 override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String

Returns

A string representation of the current Rect struct. The string has the following form: "X,Y,Width,Height".

Applies to

ToString(IFormatProvider)

Returns a string representation of the rectangle by using the specified format provider.

public:
 System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String

Parameters

provider
IFormatProvider

Culture-specific formatting information.

Returns

A string representation of the current rectangle that is determined by the specified format provider.

Applies to