Sdílet prostřednictvím


Point3D.Parse(String) Metoda

Definice

String Převede reprezentaci prostorového bodu na ekvivalentní Point3D strukturu.

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

Parametry

source
String

Reprezentace String prostorového bodu.

Návraty

Point3D

Ekvivalentní Point3D struktura.

Příklady

Následující příklad ukazuje, jak převést řetězcovou reprezentaci prostorového bodu na Point3D strukturu.

// Converts a string representation of a 3-D point into a Point3D structure.

Point3D pointResult = new Point3D();

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

// Displaying Results
syntaxString = "ointResult = Point3D.Parse(\"1,3,5\");";
resultType = "Matrix";
operationString = "Converting a string into a Point3D structure.";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 3-D point into a Point3D structure.

Dim pointResult As New Point3D()

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

' Displaying Results
syntaxString = "ointResult = Point3D.Parse(""1,3,5"")"
resultType = "Matrix"
operationString = "Converting a string into a Point3D structure."
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString)

Platí pro