Språk

Matrix.Parse(String) Metod

Definition

Konverterar en String representation av en matris till motsvarande Matrix struktur.

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

Parametrar

source
String

Matrisens String representation.

Returer

Motsvarande Matrix struktur.

Exempel

I följande exempel visas hur du konverterar en strängrepresentation av en matris till en Matrix struktur.

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

Gäller för