Point4D.Parse(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
參數
傳回
傳回對等的 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)