StyleCollection.IndexOf(Style) メソッド

定義

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

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

パラメーター

style
Style

コレクション内で検索する Style

返品

コレクション内で最初に出現する style の 0 から始まるインデックス。それ以外の場合は、スタイルがコレクション内にない場合に -1。

注釈

Contains メソッドは、Equals オブジェクトのStyle メソッドを使用して等価性を判断します。

適用対象

こちらもご覧ください