Vector3D.Parse(String) Metoda

Definicja

Konwertuje reprezentację String wektora 3-W na równoważną Vector3D strukturę.

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

Parametry

source
String

Reprezentacja String wektora 3-W.

Zwraca

Vector3D

Równoważna Vector3D struktura.

Przykłady

W poniższym przykładzie pokazano, jak za pomocą Parse metody przekonwertować reprezentację ciągu wektor3D na Vector3D strukturę.

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

Dotyczy