Vector3D.ToString Method ()


Creates a String representation of this Vector3D structure.

Namespace:   System.Windows.Media.Media3D
Assembly:  PresentationCore (in PresentationCore.dll)

public override string ToString()

Return Value

Type: System.String

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

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

.NET Framework
Available since 3.0
Return to top