[]
        
(Showing Draft Content)

C1.WPF.Excel.ShapeCollection.IndexOf

IndexOf Method

IndexOf(XLShape)

Gets the position of an XLShape object in the collection.

Declaration
public int IndexOf(XLShape shape)
Public Function IndexOf(shape As XLShape) As Integer
Parameters
Type Name Description
XLShape shape

XLShape object to look for.

Returns
Type Description
int

The position of the object in the collection, or -1 if the object is not a member of the collection.

IndexOf(int)

Gets the position of an XLShape object in the collection.

Declaration
public int IndexOf(int id)
Public Function IndexOf(id As Integer) As Integer
Parameters
Type Name Description
int id

The identifier of the object to look for.

Returns
Type Description
int

The position of the object in the collection, or -1 if the object is not a member of the collection.