StyleCollection.IndexOf(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。The zero-based index of the first occurrence of style within the collection; otherwise, -1 if the style is not in the collection.
注解
Contains方法通过对对象使用方法来确定相等性 Equals Style 。The Contains method determines equality by using the Equals method on the Style objects.