言語

TreeNodeStyleCollection.IndexOf(TreeNodeStyle) メソッド

定義

コレクション内の指定した TreeNodeStyle オブジェクトのインデックスを決定します。

public:
 int IndexOf(System::Web::UI::WebControls::TreeNodeStyle ^ style);
public int IndexOf(System.Web.UI.WebControls.TreeNodeStyle style);
member this.IndexOf : System.Web.UI.WebControls.TreeNodeStyle -> int
Public Function IndexOf (style As TreeNodeStyle) As Integer

パラメーター

style
TreeNodeStyle

検索する TreeNodeStyle

返品

style内で最初にTreeNodeStyleCollectionが見つかった場合は 0 から始まるインデックス。それ以外の場合は -1。

注釈

IndexOf メソッドを使用して、TreeNodeStyle オブジェクト内の指定したTreeNodeStyleCollection オブジェクトの 0 から始まるインデックスを決定します。 ノードがコレクション内にない場合、メソッドは -1 を返します。

Note

指定した TreeNodeStyle オブジェクトがコレクション内に複数回出現する場合は、最初の出現箇所のインデックスが返されます。

適用対象

こちらもご覧ください