แก้ไข

แชร์ผ่าน


Size.ToString Method

Definition

Returns a String that represents this instance of Size.

Overloads

ToString()

Returns a String that represents this Size object.

ToString(IFormatProvider)

Returns a String that represents this instance of Size.

ToString()

Returns a String that represents this Size object.

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

Returns

A String that specifies the width followed by the height.

Remarks

If the Width property is set to 30 and the Height property is set to 40, the ToString method returns a string that says "30, 40".

Applies to

ToString(IFormatProvider)

Returns a String that represents this instance of Size.

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

An object that provides a way to control formatting.

Returns

A String that represents this Size object.

Applies to