다음을 통해 공유


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

해당 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)

적용 대상