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<View>>
55 typedef System::Collections::Generic::ICollection<System::SharedPtr<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;
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();
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));
145 ASPOSE_TASKS_SHARED_API System::SharedPtr<View> GetByIndex(int32_t index);
146 ASPOSE_TASKS_SHARED_API
void SetViewUid(int32_t oldUid, int32_t newUid);
150 #ifdef ASPOSE_GET_SHARED_MEMBERS
151 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
157 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<View>>> views;
158 System::WeakPtr<Project> pr_ParentProject;
Represents a project.
Definition: Project.h:551
Contains a list of View objects. Implements ICollection<View> interface.
Definition: ViewCollection.h:53
void Clear() override
Removes all items from this collection.
void CopyTo(System::ArrayPtr< System::SharedPtr< View >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
System::SharedPtr< View > GetByViewScreen(ViewScreen screen)
Searches for a View with the specified Screen property, and returns the first occurrence within the c...
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< View > > > GetEnumerator() override
Returns an enumerator for this collection.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< View > > > ToList()
Converts a view collection to a list of View objects.
bool Remove(const System::SharedPtr< View > &item) override
Removes the first occurrence of a specific object from this collection.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
void Add(const System::SharedPtr< View > &item) override
Adds the specified item to this collection.
bool Contains(const System::SharedPtr< View > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
const System::SharedPtr< Project > & get_ParentProject() const
Gets the parent of the View object. Read-only Project.
System::SharedPtr< View > GetByName(const System::String &viewName)
Searches for a View with the name, and returns the first occurrence within the collection.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
Aspose.
Definition: Asn.h:13