다음을 통해 공유


Point3D.Parse(String) 메서드

정의

3차원 점의 String 표현을 해당 Point3D 구조체로 변환합니다.

public:
 static System::Windows::Media::Media3D::Point3D Parse(System::String ^ source);
public static System.Windows.Media.Media3D.Point3D Parse (string source);
static member Parse : string -> System.Windows.Media.Media3D.Point3D
Public Shared Function Parse (source As String) As Point3D

매개 변수

source
String

3차원 점의 String 표현입니다.

반환

Point3D

해당 Point3D 구조체입니다.

예제

다음 예제에서는 3차원 점의 문자열 표현을 구조체로 변환하는 Point3D 방법을 보여줍니다.

// Converts a string representation of a 3-D point into a Point3D structure.

Point3D pointResult = new Point3D();

pointResult = Point3D.Parse("1,3,5");
// pointResult is equal to (1,3,5)

// Displaying Results
syntaxString = "ointResult = Point3D.Parse(\"1,3,5\");";
resultType = "Matrix";
operationString = "Converting a string into a Point3D structure.";
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 3-D point into a Point3D structure.

Dim pointResult As New Point3D()

pointResult = Point3D.Parse("1,3,5")
' pointResult is equal to (1,3,5)

' Displaying Results
syntaxString = "ointResult = Point3D.Parse(""1,3,5"")"
resultType = "Matrix"
operationString = "Converting a string into a Point3D structure."
ShowResults(pointResult.ToString(), syntaxString, resultType, operationString)

적용 대상