Point4D.ToString Método

Definição

Cria uma String representação desta Point4D estrutura.

Sobrecargas

Name Description
ToString()

Cria uma String representação desta Point4D estrutura.

ToString(IFormatProvider)

Cria uma String representação desta Point4D estrutura.

ToString()

Cria uma String representação desta Point4D estrutura.

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

Devoluções

Devolve a String contendo os X, Y, Z, e W os valores desta Point4D estrutura.

Exemplos

O exemplo seguinte mostra como obter uma representação de cadeias de uma Point4D estrutura.

// Gets a string representation of the structure
Point4D point1 = new Point4D(10, 5, 1, 4);
String pointString;

pointString = point1.ToString();
// matrixString is equal to 10, 5, 1, 4

// Displaying Results
syntaxString = "pointString = point1.ToString();";
resultType = "String";
operationString = "Getting the string representation of a Point4D";
ShowResults(pointString.ToString(), syntaxString, resultType, operationString);
' Gets a string representation of the structure
Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointString As String

pointString = point1.ToString()
' matrixString is equal to 10, 5, 1, 4

' Displaying Results
syntaxString = "pointString = point1.ToString()"
resultType = "String"
operationString = "Getting the string representation of a Point4D"
ShowResults(pointString.ToString(), syntaxString, resultType, operationString)

Aplica-se a

ToString(IFormatProvider)

Cria uma String representação desta Point4D estrutura.

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

Devolve a String contendo os X, Y, Z, e W os valores desta Point4D estrutura.

Exemplos

O exemplo seguinte mostra como obter uma representação de cadeias de uma Point4D estrutura.

// Gets a string representation of the structure
Point4D point1 = new Point4D(10, 5, 1, 4);
String pointString;

pointString = point1.ToString();
// matrixString is equal to 10, 5, 1, 4

// Displaying Results
syntaxString = "pointString = point1.ToString();";
resultType = "String";
operationString = "Getting the string representation of a Point4D";
ShowResults(pointString.ToString(), syntaxString, resultType, operationString);
' Gets a string representation of the structure
Dim point1 As New Point4D(10, 5, 1, 4)
Dim pointString As String

pointString = point1.ToString()
' matrixString is equal to 10, 5, 1, 4

' Displaying Results
syntaxString = "pointString = point1.ToString()"
resultType = "String"
operationString = "Getting the string representation of a Point4D"
ShowResults(pointString.ToString(), syntaxString, resultType, operationString)

Aplica-se a