Point.ToString Metoda

Definice

Vytvoří reprezentaci String této Point struktury.

Přetížení

ToString()

Vytvoří reprezentaci String tohoto Point.

ToString(IFormatProvider)

Vytvoří reprezentaci String tohoto Point.

ToString()

Vytvoří reprezentaci String tohoto Point.

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

Návraty

String

A String obsahující X hodnoty Y této Point struktury.

Příklady

Následující příklad ukazuje, jak pomocí ToString metody získat String reprezentaci Point struktury.

private String toStringExample()
{

    Point point1 = new Point(10, 5);

    // Get a string representation of a Point structure.
    // pointString is equal to 10,5	.
    String stringResult = point1.ToString();

    return stringResult;
}
Private Function toStringExample() As String

    Dim point1 As New Point(10, 5)

    ' Get a string representation of a Point structure.
    ' pointString is equal to 10,5	.
    Dim stringResult As String = point1.ToString()

    Return stringResult

End Function

Platí pro

ToString(IFormatProvider)

Vytvoří reprezentaci String tohoto Point.

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

Parametry

provider
IFormatProvider

Informace o formátování specifické pro jazykovou verzi

Návraty

String

A String obsahující X hodnoty Y této Point struktury.

Platí pro