System.Web.UI.Design.DesignerAutoFormatCollection.IndexOf Method

Returns the index of the specified System.Web.UI.Design.DesignerAutoFormat object within the collection.

Syntax

public int IndexOf (DesignerAutoFormat format)

Parameters

format
The System.Web.UI.Design.DesignerAutoFormat to locate within the collection.

Returns

The zero-based index of the first occurrence of format within the collection; otherwise, -1, if the format is not in the collection.

Remarks

The DesignerAutoFormatCollection.IndexOf(DesignerAutoFormat) method determines equality by using the object.Equals(object) method on the System.Web.UI.Design.DesignerAutoFormat objects that are being compared.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 2.0.0.0