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

Represents a collection of WeekDay objects. More...

#include <WeekDayCollection.h>

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

Public Member Functions

int32_t get_Count () const override
 Gets the number of objects contained in this WeekDayCollection object. More...
 
System::SharedPtr< WeekDayidx_get (int32_t index) const override
 Gets the item value at specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< WeekDay > value) override
 Sets the item value at specified index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< WeekDay > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
void Add (const System::SharedPtr< WeekDay > &item) override
 Adds a WeekDay instance to this object. More...
 
void RemoveAt (int32_t index) override
 Removes an item at specified index. More...
 
bool Contains (const System::SharedPtr< WeekDay > &item) const override
 Checks if collection contains WeekDay.specified. More...
 
void CopyTo (System::ArrayPtr< System::SharedPtr< WeekDay >> array, int32_t arrayIndex) override
 Copies collection content to an array at specified index. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< WeekDay > > > ToList ()
 Converts the WeekDayCollection object to a list of WeekDay objects. More...
 
void Clear () override
 Clear the WeekDayCollection object. More...
 
int32_t IndexOf (const System::SharedPtr< WeekDay > &item) const override
 Returns index of WeekDay specified. More...
 
void Insert (int32_t index, const System::SharedPtr< WeekDay > &item) override
 Inserts WeekDay at specified index. More...
 
bool Remove (const System::SharedPtr< WeekDay > &item) override
 Removes WeekDay specified, if any. More...
 

Detailed Description

Represents a collection of WeekDay objects.

Member Function Documentation

◆ Add()

void Aspose::Tasks::WeekDayCollection::Add ( const System::SharedPtr< WeekDay > &  item)
override

Adds a WeekDay instance to this object.

Parameters
itemThe item to add.

◆ Clear()

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

Clear the WeekDayCollection object.

◆ Contains()

bool Aspose::Tasks::WeekDayCollection::Contains ( const System::SharedPtr< WeekDay > &  item) const
override

Checks if collection contains WeekDay.specified.

Parameters
itemThe item to check against to.
Returns
true, if collection contains item specified, of false otherwise.

◆ CopyTo()

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

Copies collection content to an array at specified index.

Parameters
arrayDestination array of WeekDay to copy to
arrayIndexStarting index for copy operation.

◆ get_Count()

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

Gets the number of objects contained in this WeekDayCollection object.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<WeekDay> > > Aspose::Tasks::WeekDayCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<WeekDay> Aspose::Tasks::WeekDayCollection::idx_get ( int32_t  index) const
override

Gets the item value at specified index.

Parameters
indexThe zero-based index of the element to get or set.

◆ idx_set()

void Aspose::Tasks::WeekDayCollection::idx_set ( int32_t  index,
System::SharedPtr< WeekDay value 
)
override

Sets the item value at specified index.

Parameters
indexThe zero-based index of the element to get or set.

◆ IndexOf()

int32_t Aspose::Tasks::WeekDayCollection::IndexOf ( const System::SharedPtr< WeekDay > &  item) const
override

Returns index of WeekDay specified.

Parameters
itemThe item to check against to.
Returns
Zero-based index of WeekDay specified, if present, or -1 otherwise.

◆ Insert()

void Aspose::Tasks::WeekDayCollection::Insert ( int32_t  index,
const System::SharedPtr< WeekDay > &  item 
)
override

Inserts WeekDay at specified index.

Parameters
indexIndex to insert to.
itemThe item to insert.

◆ Remove()

bool Aspose::Tasks::WeekDayCollection::Remove ( const System::SharedPtr< WeekDay > &  item)
override

Removes WeekDay specified, if any.

Parameters
itemThe item to remove.
Returns
True, if WeekDay was removed, false if such item was not found.

◆ RemoveAt()

void Aspose::Tasks::WeekDayCollection::RemoveAt ( int32_t  index)
override

Removes an item at specified index.

Parameters
indexindex of item to delete.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<WeekDay> > > Aspose::Tasks::WeekDayCollection::ToList ( )

Converts the WeekDayCollection object to a list of WeekDay objects.

Returns
List of WeekDay objects.