Point.ToString Método

Definição

Cria uma String representação dessa Point estrutura.

Sobrecargas

Nome Description
ToString()

Cria uma String representação disso Point.

ToString(IFormatProvider)

Cria uma String representação disso Point.

ToString()

Cria uma String representação disso Point.

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

Retornos

Um String que contém os valores e X os Y valores dessa Point estrutura.

Exemplos

O exemplo a seguir 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 disso 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ções de formatação específicas da cultura.

Retornos

Um String que contém os valores e X os Y valores dessa Point estrutura.

Aplica-se a