Export (0) Print
Expand All

DesignerOptionService.DesignerOptionCollection.IndexOf Method

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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft