Vector3D.Parse(String)Vector3D.Parse(String)Vector3D.Parse(String)Vector3D.Parse(String) Method

정의

3차원3-D 벡터의 String 표현을 해당 Vector3D 구조체로 변환합니다.Converts a String representation of a 3차원3-D vector into the equivalent Vector3D structure.

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

매개 변수

source
String String String String

3차원3-D 벡터의 String 표현입니다.The String representation of the 3차원3-D vector.

반환

해당 Vector3D 구조체입니다.The equivalent Vector3D structure.

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다는 Parse vector3D의 문자열 표현으로 변환 하는 메서드를 Vector3D 구조입니다.The following example shows how to use the Parse method to convert a string representation of a vector3D into a Vector3D structure.

// Converts a string representation of a vector into a Vector3D structure

Vector3D vectorResult = new Vector3D();

vectorResult = Vector3D.Parse("1,3,5");
// vectorResult is equal to (1, 3, 5)
' Converts a string representation of a vector into a Vector3D structure

Dim vectorResult As New Vector3D()

vectorResult = Vector3D.Parse("1,3,5")
' vectorResult is equal to (1, 3, 5)