Matrix.Parse(String) Metoda

Definice

Převede reprezentaci String matice na ekvivalentní Matrix strukturu.

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

Parametry

source
String

Reprezentace String matice.

Návraty

Ekvivalentní Matrix struktura.

Příklady

Následující příklad ukazuje, jak převést řetězcovou reprezentaci matice na Matrix strukturu.

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

Platí pro