Point4D.Parse(String) Methode

Definition

Konvertiert eine String-Darstellung einer point4D-Struktur in die entsprechende Point4D-Struktur.Converts a String representation of a point4D structure into the equivalent Point4D structure.

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

Parameter

source
String

Die String-Darstellung der point4D-Struktur.The String representation of the point4D structure.

Gibt zurück

Gibt die entsprechende Point4D-Struktur zurück.Returns the equivalent Point4D structure.

Beispiele

Im folgenden Beispiel wird gezeigt, wie die Parse -Methode verwendet wird, um eine Zeichen folgen Darstellung der Point4D Point4D-Struktur in eine-Struktur zu konvertieren.The following example shows how to use the Parse method to convert a string representation of point4D structure into a Point4D structure.

// Converts a string representation of a 4D point into a Point4D structure.

Point4D pointResult = new Point4D();

pointResult = Point4D.Parse("1,3,5,7");
// pointResult is equal to (1, 3, 5, 7)

// Displaying Results
syntaxString = "pointResult = Point4D.Parse(\"1,3,5,7\");";
resultType = "Point4D";
operationString = "Converts a string into a Point4D structure.";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 4D point into a Point4D structure.

Dim pointResult As New Point4D()

pointResult = Point4D.Parse("1,3,5,7")
' pointResult is equal to (1, 3, 5, 7)

' Displaying Results
syntaxString = "pointResult = Point4D.Parse(""1,3,5,7"")"
resultType = "Point4D"
operationString = "Converts a string into a Point4D structure."
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString)

Gilt für: