Point4D.Parse(String) 方法

定義

將 point4D 結構的 String 表示轉換成對等的 Point4D 結構。

C#
public static System.Windows.Media.Media3D.Point4D Parse (string source);

參數

source
String

point4D 結構的 String 表示。

傳回

傳回對等的 Point4D 結構。

範例

下列範例示範如何使用 Parse 方法,將 point4D 結構的字串表示轉換成 Point4D 結構。

C#
// 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);

適用於

產品 版本
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9