Vector3D.Parse(String) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
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
Parametrar
Returer
Motsvarande Vector3D struktur.
Exempel
I följande exempel visas hur du använder Parse metoden för att konvertera en strängrepresentation av en vektor3D till en 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)