Point4D.ToString Method

Definition

Creates a String representation of this Point4D structure.

Overloads

ToString()

Creates a String representation of this Point4D structure.

ToString(IFormatProvider)

Creates a String representation of this Point4D structure.

ToString()

Creates a String representation of this Point4D structure.

C#
public override string ToString();

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.

C#
// 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);

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

ToString(IFormatProvider)

Creates a String representation of this Point4D structure.

C#
public string ToString(IFormatProvider provider);

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.

C#
// 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);

Applies to

.NET Framework 4.8.1 ja muut versiot
Tuote Versiot
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10