StrokeCollection.IndexOf(Stroke) Méthode

Définition

Retourne l'index du Stroke spécifié dans StrokeCollection.

public:
 int IndexOf(System::Windows::Ink::Stroke ^ stroke);
public int IndexOf (System.Windows.Ink.Stroke stroke);
override this.IndexOf : System.Windows.Ink.Stroke -> int
Public Function IndexOf (stroke As Stroke) As Integer

Paramètres

stroke
Stroke

Le trait dont la position est requise.

Retours

Int32

Index du trait.

Remarques

La IndexOf méthode retourne -1 s’il stroke n’est pas membre du StrokeCollection.

S’applique à