8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
28 enum class ViewScreen;
37 template <
typename>
class IEnumerator;
38 template <
typename>
class List;
39 template <
typename,
typename>
class SortedList;
52 class ASPOSE_TASKS_SHARED_CLASS
ViewCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::View>>
55 typedef System::Collections::Generic::ICollection<System::SharedPtr<Aspose::Tasks::View>> BaseType;
57 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
58 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
61 friend class Aspose::Tasks::IO::MSProject::MPPReader;
62 friend class Aspose::Tasks::IO::MSProject::MppViewWriter;
69 ASPOSE_TASKS_SHARED_API int32_t get_Count()
const override;
73 ASPOSE_TASKS_SHARED_API
bool get_IsReadOnly()
const override;
78 ASPOSE_TASKS_SHARED_API
const System::SharedPtr<Project>& get_ParentProject()
const;
84 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<View>>> GetEnumerator()
override;
89 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<View>& item)
override;
93 ASPOSE_TASKS_SHARED_API
void Clear()
override;
99 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<View>& item)
const override;
105 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<View>> array, int32_t arrayIndex)
override;
111 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<View>& item)
override;
116 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<View>>> ToList();
122 ASPOSE_TASKS_SHARED_API System::SharedPtr<View> GetByViewScreen(ViewScreen screen);
128 ASPOSE_TASKS_SHARED_API System::SharedPtr<View> GetByName(
const System::String& viewName);
136 ASPOSE_TASKS_SHARED_API
void set_ParentProject(
const System::SharedPtr<Project>& value);
141 ASPOSE_TASKS_SHARED_API
ViewCollection(
const System::SharedPtr<Project>& parentProject);
143 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(ViewCollection, CODEPORTING_ARGS(
const System::SharedPtr<Project>& parentProject));
144 ASPOSE_TASKS_SHARED_API System::SharedPtr<View> GetByIndex(int32_t index);
145 ASPOSE_TASKS_SHARED_API
void SetViewUid(int32_t oldUid, int32_t newUid);
147 virtual ASPOSE_TASKS_SHARED_API ~ViewCollection();
149 #ifdef ASPOSE_GET_SHARED_MEMBERS
150 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
156 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<View>>> views;
157 System::WeakPtr<Project> pr_ParentProject;
Contains a list of View objects. Implements ICollection<View> interface.
Definition: ViewCollection.h:52
Represents a project.
Definition: Project.h:551