StyleCollection.IndexOf(Style) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
回傳集合中指定 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 零基索引;否則,若樣式不在集合中,則 -1。
備註
Contains該方法透過對Equals物件進行Style判定等式。