Point.Parse(String) 메서드

정의

지정된 .에서 a Point 를 생성합니다 String.

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

매개 변수

source
String

점의 문자열 표현입니다.

반품

동등한 구조체입니다 Point .

예외

source 은 두 개의 쉼표 또는 공백으로 구분된 이중 값으로 구성되지 않습니다.

source 에는 두 개의 숫자가 포함되어 있지 않습니다.

-또는-

source 에는 너무 많은 구분 기호가 포함되어 있습니다.

예제

다음 예제에서는 메서드를 사용하여 Parse 점의 표현을 String 구조체로 Point 변환하는 방법을 보여 있습니다.

private Point parseExample()
{

    // Converts a string representation of a point into a Point structure
    // using the Parse static method.
    // pointResult is equal to (1,3).
    Point pointResult = Point.Parse("1,3");

    return pointResult;
}
Private Function parseExample() As Point

    ' Converts a string representation of a point into a Point structure
    ' using the Parse static method.
    ' pointResult is equal to (1,3).
    Dim pointResult As Point = Point.Parse("1,3")

    Return pointResult

End Function

적용 대상