Point.ToString Método

Definición

Crea una String representación de esta Point estructura.

Sobrecargas

Nombre Description
ToString()

Crea una String representación de este Pointobjeto .

ToString(IFormatProvider)

Crea una String representación de este Pointobjeto .

ToString()

Crea una String representación de este Pointobjeto .

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

Devoluciones

que String contiene los X valores y Y de esta Point estructura.

Ejemplos

En el ejemplo siguiente se muestra cómo usar el ToString método para obtener una String representación de una Point estructura.

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

Se aplica a

ToString(IFormatProvider)

Crea una String representación de este Pointobjeto .

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

Parámetros

provider
IFormatProvider

Información de formato específica de la referencia cultural.

Devoluciones

que String contiene los X valores y Y de esta Point estructura.

Se aplica a