Size3D.Parse(String) メソッド

定義

3 次元の Size 構造体の String 表現を、等価の Size3D 構造体に変換します。

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

パラメーター

source
String

3 次元の Size 構造体の String 表現。

戻り値

等価の Size3D 構造体。

次の例は、 の文字列表現 Size3D を構造体に変換する方法を Size3D 示しています。

// Converts a string representation of a 3-D size into a Size3D structure.

Size3D sizeResult = new Size3D();

sizeResult = Size3D.Parse("10,20,30");
// sizeResult is equal to (10,20,30)

// Displaying Results
syntaxString = "sizeResult = Size3D.Parse(\"10,20,30\");";
resultType = "Size3D";
operationString = "Converting a string into a Size3D structure";
ShowResults(sizeResult.ToString(), syntaxString, resultType, operationString);
' Converts a string representation of a 3-D size into a Size3D structure.

Dim sizeResult As New Size3D()

sizeResult = Size3D.Parse("10,20,30")
' sizeResult is equal to (10,20,30)

' Displaying Results
syntaxString = "sizeResult = Size3D.Parse(""10,20,30"")"
resultType = "Size3D"
operationString = "Converting a string into a Size3D structure"
ShowResults(sizeResult.ToString(), syntaxString, resultType, operationString)

適用対象