語言

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 零基索引;否則,若樣式不在集合中,則 -1。

備註

Contains該方法透過對Equals物件進行Style判定等式。

適用於

另請參閱