Vector3D.Parse(String) Vector3D.Parse(String) Vector3D.Parse(String) Vector3D.Parse(String) Method

Definition

Konvertiert eine String Darstellung einer 3D3-D -Vektors in die entsprechende Vector3D Struktur.Converts a String representation of a 3D3-D vector into the equivalent Vector3D structure.

public:
 static System::Windows::Media::Media3D::Vector3D Parse(System::String ^ source);
public static System.Windows.Media.Media3D.Vector3D Parse (string source);
static member Parse : string -> System.Windows.Media.Media3D.Vector3D
Public Shared Function Parse (source As String) As Vector3D

Parameter

source
String String String String

Die String Darstellung der 3D3-D Vektor.The String representation of the 3D3-D vector.

Gibt zurück

Die entsprechende Vector3D Struktur.The equivalent Vector3D structure.

Beispiele

Das folgende Beispiel zeigt, wie Sie mit der Parse Methode zum Konvertieren einer Zeichenfolgendarstellung des ein vector3D in einem Vector3D Struktur.The following example shows how to use the Parse method to convert a string representation of a vector3D into a Vector3D structure.

// 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)
' Converts a string representation of a vector into a Vector3D structure

Dim vectorResult As New Vector3D()

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

Gilt für: