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)