Point3D.Parse(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
Returns
The equivalent Point3D structure.
Examples
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)
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.