語言

Matrix.Parse(String) 方法

定義

將 String 矩陣的表示轉換為等效 Matrix 結構。

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

參數

source
String

矩 String 陣的表示。

傳回

等效 Matrix 的結構。

範例

以下範例展示如何將矩陣的字串表示轉換為 Matrix 結構。

private Matrix parseExample()
{
    
    Matrix result = Matrix.Parse("1, 2, 3, 4, 5, 6");
    
    // result is equal to (1,2,3,4,5,6).
    return result;
}

適用於