Vector3D.Parse(String) Method

Definition

Converts a String representation of a 3-D vector into the equivalent Vector3D structure.

C#
public static System.Windows.Media.Media3D.Vector3D Parse(string source);

Parameters

source
String

The String representation of the 3-D vector.

Returns

The equivalent Vector3D structure.

Examples

The following example shows how to use the Parse method to convert a string representation of a vector3D into a Vector3D structure.

C#
// Converts a string representation of a vector into a Vector3D structure

Vector3D vectorResult = new Vector3D();

vectorResult = Vector3D.Parse("1,3,5");
// vectorResult is equal to (1, 3, 5)

Applies to

Product Versions
.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