次の方法で共有


Point3D.Parse(String) メソッド

定義

3-D の点の String 表現を、等価の Point3D 構造体に変換します。

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

パラメーター

source
String

3-D の点の String 表現。

戻り値

Point3D

等価の Point3D 構造体。

次の例は、3-D ポイントの文字列表現を構造体に変換する方法を Point3D 示しています。

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

適用対象