Point.ToString Método

Definição

Cria uma String representação desta Point estrutura.

Sobrecargas

Name Descrição
ToString()

Cria uma String representação deste Point.

ToString(IFormatProvider)

Cria uma String representação deste Point.

ToString()

Cria uma String representação deste Point.

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

Devoluções

A contendo String os X valores e Y desta Point estrutura.

Exemplos

O exemplo seguinte mostra como usar o ToString método para obter uma String representação de uma Point estrutura.

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

Aplica-se a

ToString(IFormatProvider)

Cria uma String representação deste 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

Parâmetros

provider
IFormatProvider

Informação de formatação específica por cultura.

Devoluções

A contendo String os X valores e Y desta Point estrutura.

Aplica-se a