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

Collection that represents the portions of a task. More...

#include <SplitPartCollection.h>

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

Public Member Functions

int32_t get_Count () const override
 Gets the number of parts in the collection. More...
 
System::SharedPtr< SplitPartidx_get (int32_t index) const override
 Retrieves a task's split part at the given index. More...
 
void idx_set (int32_t index, System::SharedPtr< SplitPart > value) override
 Retrieves a task's split part at the given index. More...
 
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< SplitPart > > > GetEnumerator () override
 Returns an enumerator for this collection. More...
 
System::ArrayPtr< System::SharedPtr< SplitPart > > ToArray ()
 Copies all parts from the collection to a new array. More...
 

Detailed Description

Collection that represents the portions of a task.

Member Function Documentation

◆ get_Count()

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

Gets the number of parts in the collection.

◆ GetEnumerator()

System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<SplitPart> > > Aspose::Tasks::SplitPartCollection::GetEnumerator ( )
override

Returns an enumerator for this collection.

Returns
an enumerator for this collection.

◆ idx_get()

System::SharedPtr<SplitPart> Aspose::Tasks::SplitPartCollection::idx_get ( int32_t  index) const
override

Retrieves a task's split part at the given index.

Parameters
indexThe part index.
Returns
a split part.

The index is zero-based. Returns null if the index is outside array's boundaries.

◆ idx_set()

void Aspose::Tasks::SplitPartCollection::idx_set ( int32_t  index,
System::SharedPtr< SplitPart value 
)
override

Retrieves a task's split part at the given index.

Parameters
indexThe part index.
valuea split part.

The index is zero-based. Returns null if the index is outside array's boundaries.

◆ ToArray()

System::ArrayPtr<System::SharedPtr<SplitPart> > Aspose::Tasks::SplitPartCollection::ToArray ( )

Copies all parts from the collection to a new array.

Returns
An array of Aspose::Tasks::SplitPart objects.