ObjectCollection.contains Method

Parent Object: ObjectCollection
Defined in namespace "adsk::core" and the header file is <Core/Application/ObjectCollection.h>

Description

Returns whether the specified object exists within the collection.

Syntax

"objectCollection_var" is a variable referencing an ObjectCollection object.
returnValue = objectCollection_var.contains(item)
"objectCollection_var" is a variable referencing an ObjectCollection object.

#include <Core/Application/ObjectCollection.h>

returnValue = objectCollection_var->contains(item);

Return Value

Type Description
boolean Returns true if the specified item is found in the collection.

Parameters

Name Type Description
item Base The item to look for in the collection.

Version

Introduced in version August 2014