Xml.XMLIntf.IXMLNodeList.IndexOf

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function IndexOf(const Node: IXMLNode): Integer; overload;
function IndexOf(const Name: DOMString): Integer; overload;
function IndexOf(const Name, NamespaceURI: DOMString): Integer; overload;

C++

virtual int __fastcall IndexOf(const _di_IXMLNode Node) = 0 /* overload */;
virtual int __fastcall IndexOf(const System::UnicodeString Name) = 0 /* overload */;
virtual int __fastcall IndexOf(const System::UnicodeString Name, const System::UnicodeString NamespaceURI) = 0 /* overload */;

Propriétés

Type Visibilité  Source Unité  Parent
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNodeList

Description

Renvoie l'indice d'un noeud spécifié.

Appelez IndexOf pour localiser un noeud dans la liste. Vous pouvez spécifier le noeud à localiser en indiquant son nom ou son interface.

Name est la propriété LocalName du noeud à localiser.

NamespaceURI identifie l'espace de nommage à utiliser lors de l'interprétation de LocalName (si nécessaire).

Node est l'interface du noeud à localiser.

IndexOf renvoie l'indice du noeud spécifié, 0 étant l'indice du premier noeud, 1 l'indice du deuxième noeud, etc. Si le noeud spécifié n'est pas dans la liste, IndexOf renvoie -1.

Voir aussi