DesignerAutoFormatCollection::IndexOf Method (DesignerAutoFormat^)

 

Returns the index of the specified DesignerAutoFormat object within the collection.

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

public:
int IndexOf(
	DesignerAutoFormat^ format
)

Parameters

format
Type: System.Web.UI.Design::DesignerAutoFormat^

The DesignerAutoFormat to locate within the collection.

Return Value

Type: System::Int32

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

The IndexOf method determines equality by using the Equals method on the DesignerAutoFormat objects that are being compared.

.NET Framework
Available since 2.0
Return to top
Show: