Vector3D.ToString Method

Definition

Creates a String representation of this Vector3D structure.

Overloads

ToString()

Creates a String representation of this Vector3D structure.

ToString(IFormatProvider)

Creates a String representation of this Vector3D structure.

ToString()

Creates a String representation of this Vector3D structure.

C#
public override string ToString();

Returns

A string containing the X, Y, and Z values of this Vector3D structure.

Examples

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

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 Vector3D structure.

C#
public string ToString(IFormatProvider provider);

Parameters

provider
IFormatProvider

Culture-specific formatting information.

Returns

Returns a String containing the X, Y, and Z values of this Vector3D structure.

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