TreeNodeCollection.IList.IndexOf(Object) Metodo
In questo articolo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Restituisce l'indice del nodo della struttura ad albero specificato nell'insieme.
virtual int System.Collections.IList.IndexOf(System::Object ^ node) = System::Collections::IList::IndexOf;
int IList.IndexOf(object node);
int IList.IndexOf(object? node);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (node As Object) As Integer Implements IList.IndexOf
Indice in base zero dell'elemento trovato nell'insieme dei nodi della struttura ad albero; in caso contrario, -1.
Se node non è un oggetto TreeNode, il IList.IndexOf metodo restituisce -1. Pertanto, non è possibile passare una stringa per trovare il nodo con il valore della stringa come proprietà Text .
Si applica a
| Prodotto | Versioni |
|---|---|
| .NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
| Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |