Returns the index of the specified System.Web.UI.Design.DesignerAutoFormat object within the collection.
- format
- The System.Web.UI.Design.DesignerAutoFormat to locate within the collection.
The zero-based index of the first occurrence of format within the collection; otherwise, -1, if the format is not in the collection.
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.