Vector3D.ToString Método

Definição

Cria uma String representação desta Vector3D estrutura.

Sobrecargas

Name Description
ToString()

Cria uma String representação desta Vector3D estrutura.

ToString(IFormatProvider)

Cria uma String representação desta Vector3D estrutura.

ToString()

Cria uma String representação desta Vector3D estrutura.

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

Devoluções

Uma cadeia contendo os X, , e Y os valores desta ZVector3Destrutura.

Exemplos

// Gets a string representation of the structure
Vector3D vector1 = new Vector3D(20, 30, 40);
String vectorString;

vectorString = vector1.ToString();
// vectorString is equal to 20, 30, 40
' Gets a string representation of the structure
Dim vector1 As New Vector3D(20, 30, 40)
Dim vectorString As String

vectorString = vector1.ToString()
' vectorString is equal to 20, 30, 40

Aplica-se a

ToString(IFormatProvider)

Cria uma String representação desta Vector3D 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, e Z os valores desta Vector3D estrutura.

Aplica-se a