DesignerOptionService.DesignerOptionCollection.IndexOf Method (DesignerOptionService.DesignerOptionCollection)


Returns the index of the first occurrence of a given value in a range of this collection.

Namespace:   System.ComponentModel.Design
Assembly:  System (in System.dll)

public int IndexOf(
	DesignerOptionService.DesignerOptionCollection value


Type: System.ComponentModel.Design.DesignerOptionService.DesignerOptionCollection

The object to locate in the collection.

Return Value

Type: System.Int32

The index of the first occurrence of value within the entire collection, if found; otherwise, the lower bound of the collection minus 1.

The collection is searched, in one direction, from beginning to end.

.NET Framework
Available since 2.0
Return to top