Idioma

Matrix.Parse(String) Método

Definição

Converte uma String representação de uma matriz na estrutura equivalente 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

Parâmetros

source
String

A String representação da matriz.

Devoluções

A estrutura equivalente Matrix .

Exemplos

O exemplo seguinte mostra como converter uma representação de cordas de uma matriz numa Matrix estrutura.

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

Aplica-se a