Point3D.Parse(String) Metodo

Definizione

Converte una rappresentazione String di un punto tridimensionale nella struttura Point3D equivalente.Converts a String representation of a 3-D point into the equivalent Point3D structure.

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

Parametri

source
String

Rappresentazione String del punto tridimensionale.The String representation of the 3-D point.

Restituisce

Point3D

Struttura Point3D equivalente.The equivalent Point3D structure.

Esempio

Nell'esempio seguente viene illustrato come convertire una rappresentazione di stringa di un punto tridimensionale in una Point3D struttura.The following example shows how to convert a string representation of a 3-D point into a Point3D structure.

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

Si applica a