Aspose.Tasks for C++
Aspose::Tasks::GroupCriterionCollection Class Reference

Contains a collection of GroupCriterion objects. Implements ICollection<GroupCriterion> interface. More...

#include <GroupCriterionCollection.h>

Inherits System::Collections::Generic::IList< typename >.

Public Member Functions

int32_t get_Count () const override
 Gets the number of elements contained in this collection. More...
 
bool get_IsReadOnly () const override
 Gets a value indicating whether this collection is read-only; otherwise, false. More...
 
const System::SharedPtr< Group > & get_ParentGroup () const
 Gets the parent of the GroupCriterion object. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< GroupCriterion > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const System::SharedPtr< GroupCriterion > &item) override
 Adds the specified item to this collection. More...
 
void Clear () override
 Removes all items from this collection. More...
 
bool Contains (const System::SharedPtr< GroupCriterion > &item) const override
 Returns true if the specified item is found in this collection; otherwise, false. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< GroupCriterion >> array, int32_t arrayIndex) override
 Copies the elements of this collection to the specified array, starting at the specified array index. More...
 
bool Remove (const System::SharedPtr< GroupCriterion > &item) override
 Removes the first occurrence of a specific object from this collection. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< GroupCriterion > > > ToList ()
 Converts a GroupCriterion collection to a list of GroupCriterion objects. More...
 

Detailed Description

Contains a collection of GroupCriterion objects. Implements ICollection<GroupCriterion> interface.

Member Function Documentation

◆ Add()

void Aspose::Tasks::GroupCriterionCollection::Add ( const System::SharedPtr< GroupCriterion > &  item)
override

Adds the specified item to this collection.

Parameters
itemthe specified item to add to this collection.

◆ Clear()

void Aspose::Tasks::GroupCriterionCollection::Clear ( )
override

Removes all items from this collection.

◆ Contains()

bool Aspose::Tasks::GroupCriterionCollection::Contains ( const System::SharedPtr< GroupCriterion > &  item) const
override

Returns true if the specified item is found in this collection; otherwise, false.

Parameters
itemthe specified item to find.
Returns
true if the specified item is found in this collection; otherwise, false.

◆ CopyTo()

void Aspose::Tasks::GroupCriterionCollection::CopyTo ( System::ArrayPtr< System::SharedPtr< GroupCriterion >>  array,
int32_t  arrayIndex 
)
override

Copies the elements of this collection to the specified array, starting at the specified array index.

Parameters
arraythe specified one-dimensional array to copy elements to
arrayIndexthe zero-based index of the specified array at which copying begins.

◆ get_Count()

int32_t Aspose::Tasks::GroupCriterionCollection::get_Count ( ) const
override

Gets the number of elements contained in this collection.

◆ get_IsReadOnly()

bool Aspose::Tasks::GroupCriterionCollection::get_IsReadOnly ( ) const
override

Gets a value indicating whether this collection is read-only; otherwise, false.

◆ get_ParentGroup()

const System::SharedPtr<Group>& Aspose::Tasks::GroupCriterionCollection::get_ParentGroup ( ) const

Gets the parent of the GroupCriterion object.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<GroupCriterion> > > Aspose::Tasks::GroupCriterionCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ Remove()

bool Aspose::Tasks::GroupCriterionCollection::Remove ( const System::SharedPtr< GroupCriterion > &  item)
override

Removes the first occurrence of a specific object from this collection.

Parameters
itemthe specified object to remove.
Returns
true if the specified object was successfully removed from this collection; otherwise, false.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<GroupCriterion> > > Aspose::Tasks::GroupCriterionCollection::ToList ( )

Converts a GroupCriterion collection to a list of GroupCriterion objects.

Returns
Generic list of GroupCriterion objects.