Condividi tramite


StrokeCollection.IndexOf(Stroke) Metodo

Definizione

Restituisce l'indice dell'oggetto Stroke specificato, nell'insieme 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

Parametri

stroke
Stroke

Tratto la cui posizione è richiesta.

Restituisce

Int32

Indice del tratto.

Commenti

Il IndexOf metodo restituisce -1 se stroke non è un membro dell'oggetto StrokeCollection.

Si applica a