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

Represents a collection of WorkWeek objects. More...

#include <WorkWeekCollection.h>

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

Public Member Functions

int32_t get_Count () const override
 Gets the number of objects contained in this WorkWeekCollection object. More...
 
System::SharedPtr< Calendarget_ParentCalendar () const
 Gets the parent calendar. More...
 
System::SharedPtr< WorkWeekidx_get (int32_t index) const override
 Returns the element at the specified index. More...
 
void idx_set (int32_t index, System::SharedPtr< WorkWeek > value) override
 Returns the element at the specified index. More...
 
void Add (const System::SharedPtr< WorkWeek > &item) override
 Adds WorkWeek instance to this collection object. More...
 
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< WorkWeek > > > ToList ()
 Converts the WorkWeekCollection object to a list of WorkWeek objects. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< WorkWeek > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 

Detailed Description

Represents a collection of WorkWeek objects.

Member Function Documentation

◆ Add()

void Aspose::Tasks::WorkWeekCollection::Add ( const System::SharedPtr< WorkWeek > &  item)
override

Adds WorkWeek instance to this collection object.

Parameters
itemThe item to add.

◆ get_Count()

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

Gets the number of objects contained in this WorkWeekCollection object.

◆ get_ParentCalendar()

System::SharedPtr<Calendar> Aspose::Tasks::WorkWeekCollection::get_ParentCalendar ( ) const

Gets the parent calendar.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<WorkWeek> > > Aspose::Tasks::WorkWeekCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<WorkWeek> Aspose::Tasks::WorkWeekCollection::idx_get ( int32_t  index) const
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
Returns
the element at the specified index.

◆ idx_set()

void Aspose::Tasks::WorkWeekCollection::idx_set ( int32_t  index,
System::SharedPtr< WorkWeek value 
)
override

Returns the element at the specified index.

Parameters
indexThe zero-based index of the element to get.
valuethe element at the specified index.

◆ ToList()

System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<WorkWeek> > > Aspose::Tasks::WorkWeekCollection::ToList ( )

Converts the WorkWeekCollection object to a list of WorkWeek objects.

Returns
List of WorkWeek objects.