Vector3D.Parse(String) メソッド

定義

3-D3-D ベクターの String 表現を、等価の Vector3D 構造体に変換します。Converts a String representation of a 3-D3-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

3-D3-D ベクターの String 表現。The String representation of the 3-D3-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)

適用対象