8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
36 template <
typename>
class IEnumerator;
37 template <
typename>
class List;
38 template <
typename,
typename>
class SortedList;
51 class ASPOSE_TASKS_SHARED_CLASS
FilterCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Filter>>
54 typedef System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::Filter>> BaseType;
56 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
57 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
61 friend class Aspose::Tasks::IO::MSProject::MppViewWriter;
68 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
78 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Filter>>>
GetEnumerator()
override;
83 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<Filter>& item)
override;
87 ASPOSE_TASKS_SHARED_API
void Clear()
override;
93 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<Filter>& item)
const override;
99 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<Filter>> array, int32_t arrayIndex)
override;
105 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Filter>& item)
override;
110 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Filter>>>
ToList();
119 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
FilterCollection, CODEPORTING_ARGS());
120 ASPOSE_TASKS_SHARED_API System::SharedPtr<Filter> GetFirstOrDefault();
121 ASPOSE_TASKS_SHARED_API System::SharedPtr<Filter> GetByName(
const System::String& filterName);
125 #ifdef ASPOSE_GET_SHARED_MEMBERS
126 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
132 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<Filter>>> filters;
134 int32_t GetNextUid();
Contains a list of Filter objects. Implements ICollection<Filter> interface.
Definition: FilterCollection.h:52
void Add(const System::SharedPtr< Filter > &item) override
Adds the specified item to this collection.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
void CopyTo(System::ArrayPtr< System::SharedPtr< Filter >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
bool Contains(const System::SharedPtr< Filter > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Filter > > > GetEnumerator() override
Returns an enumerator for this collection.
bool Remove(const System::SharedPtr< Filter > &item) override
Removes the first occurrence of a specific object from this collection.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Filter > > > ToList()
Converts a filter collection to a list of Filter objects.
void Clear() override
Removes all items from this collection.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
Represents a GanttChart view.
Definition: GanttChartView.h:70
Represents a project.
Definition: Project.h:552