Langue

Matrix.Parse(String) Méthode

Définition

Convertit une représentation d’une String matrice en structure équivalente 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

Paramètres

source
String

Représentation String de la matrice.

Retours

Structure équivalente Matrix .

Exemples

L’exemple suivant montre comment convertir une représentation sous forme de chaîne d’une matrice en structure 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;
}

S’applique à