Vector3D.ToString Metoda

Definicja

Tworzy reprezentację String tej Vector3D struktury.

Przeciążenia

ToString()

Tworzy reprezentację String tej Vector3D struktury.

ToString(IFormatProvider)

Tworzy reprezentację String tej Vector3D struktury.

ToString()

Tworzy reprezentację String tej Vector3D struktury.

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

Zwraca

String

Ciąg zawierający Xwartości , Yi Z tej Vector3D struktury.

Przykłady

// 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

Dotyczy

ToString(IFormatProvider)

Tworzy reprezentację String tej Vector3D struktury.

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

Parametry

provider
IFormatProvider

Informacje o formatowaniu specyficznym dla kultury.

Zwraca

String

Zwraca wartość zawierającą String Xwartości , Yi Z tej Vector3D struktury.

Dotyczy