Vector.Parse(String) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
벡터의 문자열 표현을 해당하는 Vector 구조체로 변환합니다.
public:
static System::Windows::Vector Parse(System::String ^ source);
public static System.Windows.Vector Parse(string source);
static member Parse : string -> System.Windows.Vector
Public Shared Function Parse (source As String) As Vector
매개 변수
- source
- String
벡터의 문자열 표현입니다.
반품
동등한 구조체입니다 Vector .
예제
다음 예제에서는 이 메서드를 사용하여 벡터의 문자열 표현을 구조체로 Vector 변환하는 방법을 보여줍니다.
private Vector parseExample()
{
// Convert string into a Vector structure.
// vectorResult is equal to (1,3)
Vector vectorResult = Vector.Parse("1,3");
return vectorResult;
}
Private Function parseExample() As Vector
' Convert string into a Vector structure.
' vectorResult is equal to (1,3)
Dim vectorResult As Vector = Vector.Parse("1,3")
Return vectorResult
End Function