Matrix.Parse(String) Matrix.Parse(String) Matrix.Parse(String) Matrix.Parse(String) Method

定義

將矩陣的 String 表示轉換為對等的 Matrix 結構。Converts a String representation of a matrix into the equivalent Matrix structure.

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 String String

矩陣的 String 表示。The String representation of the matrix.

傳回

對等的 Matrix 結構。The equivalent Matrix structure.

範例

下列範例顯示如何將矩陣的字串表示轉換成Matrix結構。The following example shows how to convert a string representation of a matrix into a Matrix structure.

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;
      
}

適用於