[]
        
(Showing Draft Content)

C1.Excel.ShapeCollection.Contains

Contains Method

Contains(XLShape)

Checks whether the collection contains a specific XLShape object.

Declaration
public bool Contains(XLShape shape)
Parameters
Type Name Description
XLShape shape

XLShape object to look for.

Returns
Type Description
bool

True if the collection contains the range, False otherwise.

Contains(int)

Checks whether the collection contains a specific XLShape object.

Declaration
public bool Contains(int id)
Parameters
Type Name Description
int id

The identifier of the object to look for.

Returns
Type Description
bool

True if the collection contains the range, False otherwise.