Size3D.Parse(String) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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
參數
傳回
對等的 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)