Point4D.ToString メソッド

定義

このString構造体のPoint4D表現を作成します。

オーバーロード

名前 説明
ToString()

このString構造体のPoint4D表現を作成します。

ToString(IFormatProvider)

このString構造体のPoint4D表現を作成します。

ToString()

このString構造体のPoint4D表現を作成します。

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

返品

このString構造体のXYZ、およびWの値を含むPoint4Dを返します。

次の例は、 Point4D 構造体の文字列形式を取得する方法を示しています。

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

適用対象

ToString(IFormatProvider)

このString構造体のPoint4D表現を作成します。

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

パラメーター

provider
IFormatProvider

カルチャ固有の書式設定情報。

返品

このString構造体のXYZ、およびWの値を含むPoint4Dを返します。

次の例は、 Point4D 構造体の文字列表現を取得する方法を示しています。

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

適用対象