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 結構。

範例

下列範例示範如何將矩陣的字串表示轉換成 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;
}

適用於