Point4D.ToString 方法

定义

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

重载

ToString()

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

ToString(IFormatProvider)

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

ToString()

创建此 String 结构的 Point4D 表示形式。Creates a String representation of this Point4D structure.

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

返回

String

返回包含此 String 结构的 XYZW 值的 Point4DReturns a String containing the X, Y, Z, and W values of this Point4D structure.

示例

下面的示例演示如何获取结构的字符串表示形式 Point4DThe following example shows how to get a string representation of a Point4D structure.

// 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 表示形式。Creates a String representation of this Point4D structure.

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

区域性特定的格式设置信息。Culture-specific formatting information.

返回

String

返回包含此 String 结构的 XYZW 值的 Point4DReturns a String containing the X, Y, Z, and W values of this Point4D structure.

示例

下面的示例演示如何获取结构的字符串表示形式 Point4DThe following example shows how get a string representation of a Point4D structure.

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

适用于