Share via


Point4D.ToString Yöntem

Tanım

Bu Point4D yapının bir String gösterimini oluşturur.

Aşırı Yüklemeler

ToString()

Bu Point4D yapının bir String gösterimini oluşturur.

ToString(IFormatProvider)

Bu Point4D yapının bir String gösterimini oluşturur.

ToString()

Bu Point4D yapının bir String gösterimini oluşturur.

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

Döndürülenler

Bu Point4D yapının , Y, Zve W değerlerini içeren Xbir String döndürür.

Örnekler

Aşağıdaki örnekte, bir Point4D yapının dize gösteriminin nasıl alınması gösterilmektedir.

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

Şunlara uygulanır

ToString(IFormatProvider)

Bu Point4D yapının bir String gösterimini oluşturur.

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

Parametreler

provider
IFormatProvider

Kültüre özgü biçimlendirme bilgileri.

Döndürülenler

Bu Point4D yapının , Y, Zve W değerlerini içeren Xbir String döndürür.

Örnekler

Aşağıdaki örnekte, bir Point4D yapının dize gösteriminin nasıl alınması gösterilmektedir.

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

Şunlara uygulanır