Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ToString Method
Collapse the table of content
Expand the table of content

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft