Point4D.ToString Methode

Definition

Erstellt eine String-Darstellung dieser Point4D-Struktur.

Überlädt

ToString()

Erstellt eine String-Darstellung dieser Point4D-Struktur.

ToString(IFormatProvider)

Erstellt eine String-Darstellung dieser Point4D-Struktur.

ToString()

Erstellt eine String-Darstellung dieser Point4D-Struktur.

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

Gibt zurück

Gibt einen String zurück, der die Werte für X, Y, Z und W der Point4D-Struktur enthält.

Beispiele

Das folgende Beispiel zeigt, wie Sie eine Zeichenfolgendarstellung einer Point4D Struktur abrufen.

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

Gilt für:

ToString(IFormatProvider)

Erstellt eine String-Darstellung dieser Point4D-Struktur.

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

Parameter

provider
IFormatProvider

Kulturspezifische Formatierungsinformationen.

Gibt zurück

Gibt einen String zurück, der die Werte für X, Y, Z und W der Point4D-Struktur enthält.

Beispiele

Das folgende Beispiel zeigt, wie eine Zeichenfolgendarstellung einer Point4D Struktur abgerufen wird.

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

Gilt für: