Xml.XMLIntf.IXMLNodeList.IndexOf

提供: RAD Studio API Documentation
移動先: 案内検索

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 */;

プロパティ

種類 可視性 ソース ユニット
function public
Xml.XMLIntf.pas
Xml.XMLIntf.hpp
Xml.XMLIntf IXMLNodeList

説明

指定されたノードのインデックスを返します。

IndexOf メソッドを呼び出すと,リスト内のノードの位置を見つけることができます。位置を特定するノードは,名前またはインターフェースで指定できます。

Name は,位置を特定するノードの LocalName プロパティです。

NamespaceURI は,必要な場合に LocalName を解釈するときの名前空間を識別します。

Node は,位置を特定するノードのインターフェースです。

IndexOf は,指定されたノードのインデックスを返します。0 は最初のノードのインデックス,1 は 2 番めのノードのインデックスです。指定されたノードがリストにない場合,IndexOf は -1 を返します。

関連項目