Vector3D.ToString メソッド

定義

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

オーバーロード

名前 説明
ToString()

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

ToString(IFormatProvider)

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

ToString()

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

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

返品

このX構造体のYZ、およびVector3D値を含む文字列。

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

適用対象

ToString(IFormatProvider)

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

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構造体のXY、およびZ値を含むVector3Dを返します。

適用対象