Point4D.ToString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToString() | |
ToString(IFormatProvider) |
ToString()
public:
override System::String ^ ToString();
public override string ToString ();
override this.ToString : unit -> string
Public Overrides Function ToString () As String
Returns
Returns a String containing the X, Y, Z, and W values of this Point4D structure.
Examples
The 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)
Applies to
ToString(IFormatProvider)
public:
System::String ^ ToString(IFormatProvider ^ provider);
public string ToString (IFormatProvider provider);
override this.ToString : IFormatProvider -> string
Public Function ToString (provider As IFormatProvider) As String
Parameters
- provider
- IFormatProvider
Culture-specific formatting information.
Returns
Returns a String containing the X, Y, Z, and W values of this Point4D structure.
Examples
The 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)
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.