Gets the position of the sheet with the specified name in the collection.

Namespace:  C1.Silverlight.Excel
Assembly:  C1.Silverlight.Excel.5 (in C1.Silverlight.Excel.5.dll)

Syntax

C#
public int IndexOf(
	string name
)
Visual Basic
Public Function IndexOf ( _
	name As String _
) As Integer

Parameters

name
Type: System..::..String
Name of the object to look for (case-insensitive).

Return Value

The index of the sheet in the collection, or -1 if the sheet can't be found in the collection.

See Also