8 #include <system/collections/icollection.h>
9 #include <system/array.h>
12 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
29 class TemplateProjectLoader;
33 namespace Visualization
45 template <
typename>
class IEnumerator;
46 template <
typename>
class List;
47 template <
typename,
typename>
class SortedList;
60 class ASPOSE_TASKS_SHARED_CLASS
TableCollection :
public System::Collections::Generic::ICollection<System::SharedPtr<Table>>
63 typedef System::Collections::Generic::ICollection<System::SharedPtr<Table>> BaseType;
65 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
66 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
70 friend class Aspose::Tasks::Saving::TemplateProjectLoader;
72 friend class Aspose::Tasks::IO::MSProject::MppViewWriter;
79 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
89 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Table>>>
GetEnumerator()
override;
94 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<Table>& item)
override;
98 ASPOSE_TASKS_SHARED_API
void Clear()
override;
104 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<Table>& item)
const override;
110 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<Table>> array, int32_t arrayIndex)
override;
116 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<Table>& item)
override;
121 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Table>>>
ToList();
130 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
TableCollection, CODEPORTING_ARGS());
138 ASPOSE_TASKS_SHARED_API System::SharedPtr<Table> GetByNameAndType(
const System::String& name, ItemType itemType);
139 ASPOSE_TASKS_SHARED_API System::SharedPtr<Table> GetByType(ItemType itemType);
140 ASPOSE_TASKS_SHARED_API int32_t GetLastUid();
144 #ifdef ASPOSE_GET_SHARED_MEMBERS
145 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
151 System::SharedPtr<System::Collections::Generic::SortedList<int32_t, System::SharedPtr<Table>>> tables;
Represents a project.
Definition: Project.h:550
Contains a list of Table objects. Implements ICollection<Table> interface.
Definition: TableCollection.h:61
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Table > > > GetEnumerator() override
Returns an enumerator for this collection.
void Clear() override
Removes all items from this collection.
System::SharedPtr< System::Collections::Generic::List< System::SharedPtr< Table > > > ToList()
Converts a table collection to a list of Table objects.
int32_t get_Count() const override
Gets the number of elements contained in this collection.
bool Contains(const System::SharedPtr< Table > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
void CopyTo(System::ArrayPtr< System::SharedPtr< Table >> array, int32_t arrayIndex) override
Copies the elements of this collection to the specified array, starting at the specified array index.
bool Remove(const System::SharedPtr< Table > &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; otherwise, false.
void Add(const System::SharedPtr< Table > &item) override
Adds the specified item to this collection.
Represents a view in Project.
Definition: View.h:100
Project's view class
Definition: ProjectView.h:58
Aspose.
Definition: Asn.h:13