Point4D.Parse(String) メソッド

定義

point4D 構造体の String 表現を、等価の Point4D 構造体に変換します。

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

パラメーター

source
String

point4D 構造体の String 表現。

戻り値

等価の Point4D 構造体を返します。

次の例は、 メソッドを Parse 使用して point4D 構造体の文字列表現を構造体に変換する方法を Point4D 示しています。

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

適用対象