8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
35 template <
typename>
class IEnumerator;
36 template <
typename>
class List;
37 template <
typename,
typename>
class SortedList;
50 class ASPOSE_TASKS_SHARED_CLASS
GroupCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Group>>
53 typedef System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Group>> BaseType;
55 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
59 friend class Aspose::Tasks::IO::MSProject::MppViewWriter;
66 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
76 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Group>>>
GetEnumerator()
override;
81 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<Group>& item)
override;
85 ASPOSE_TASKS_SHARED_API
void Clear()
override;
91 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<Group>& item)
const override;
97 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<Group>> array, int32_t arrayIndex)
override;
103 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Group>& item)
override;
108 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Group>>>
ToList();
117 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
GroupCollection, CODEPORTING_ARGS());
118 ASPOSE_TASKS_SHARED_API System::SharedPtr<Group> GetByName(
const System::String& groupName);
119 ASPOSE_TASKS_SHARED_API System::SharedPtr<Group> GetFirstOrDefault();
123 #ifdef ASPOSE_GET_SHARED_MEMBERS
124 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
130 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<Group>>> groups;
Contains a list of Group objects. Implements ICollection<Group> interface.
Definition: GroupCollection.h:51
void Add(const System::SharedPtr< Group > &item) override
Adds the specified item to this collection.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
bool Remove(const System::SharedPtr< Group > &item) override
Removes the first occurrence of a specific object from this collection.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only.
void Clear() override
Removes all items from this collection.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Group > > > ToList()
Converts a group collection to a list of Group objects.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Group > > > GetEnumerator() override
Returns an enumerator for this collection.
bool Contains(const System::SharedPtr< Group > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
void CopyTo(System::ArrayPtr< System::SharedPtr< Group >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
Represents a project.
Definition: Project.h:552