DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回集合中指定 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 来确定相等性。