语言

DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) 方法

定义

返回集合中指定 DesignerAutoFormat 对象的索引。

public:
 int IndexOf(System::Web::UI::Design::DesignerAutoFormat ^ format);
public int IndexOf(System.Web.UI.Design.DesignerAutoFormat format);
member this.IndexOf : System.Web.UI.Design.DesignerAutoFormat -> int
Public Function IndexOf (format As DesignerAutoFormat) As Integer

参数

format
DesignerAutoFormat

在 DesignerAutoFormat 集合中查找的项。

返回

集合中第一个匹配项 format 的从零开始的索引;否则为 -1(如果格式不在集合中)。

注解

该方法 IndexOf 通过使用 Equals 所比较对象的方法 DesignerAutoFormat 来确定相等性。

适用于

另请参阅