8 #include <system/collections/list.h>
9 #include <system/collections/ilist.h>
10 #include <system/array.h>
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
37 template <
typename>
class IEnumerator;
50 class ASPOSE_TASKS_SHARED_CLASS
TableFieldCollection :
public System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TableField>>
53 typedef System::Collections::Generic::IList<System::SharedPtr<Aspose::Tasks::TableField>> BaseType;
55 typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
56 ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
58 friend class Aspose::Tasks::IO::MSProject::MPPTableReader;
65 using iterator =
typename iterator_holder_type::iterator;
78 ASPOSE_TASKS_SHARED_API int32_t
get_Count()
const override;
89 ASPOSE_TASKS_SHARED_API System::SharedPtr<TableField>
idx_get(int32_t index)
const override;
95 ASPOSE_TASKS_SHARED_API
void idx_set(int32_t index, System::SharedPtr<TableField> value)
override;
101 ASPOSE_TASKS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<TableField>>>
GetEnumerator()
override;
106 ASPOSE_TASKS_SHARED_API
void Add(
const System::SharedPtr<TableField>& item)
override;
110 ASPOSE_TASKS_SHARED_API
void Clear()
override;
116 ASPOSE_TASKS_SHARED_API
bool Contains(
const System::SharedPtr<TableField>& item)
const override;
122 ASPOSE_TASKS_SHARED_API
void CopyTo(System::ArrayPtr<System::SharedPtr<TableField>> array, int32_t arrayIndex)
override;
128 ASPOSE_TASKS_SHARED_API
bool Remove(
const System::SharedPtr<TableField>& item)
override;
134 ASPOSE_TASKS_SHARED_API int32_t
IndexOf(
const System::SharedPtr<TableField>& item)
const override;
140 ASPOSE_TASKS_SHARED_API
void Insert(int32_t index,
const System::SharedPtr<TableField>& item)
override;
145 ASPOSE_TASKS_SHARED_API
void RemoveAt(int32_t index)
override;
192 ASPOSE_TASKS_SHARED_API MEMBER_FUNCTION_MAKE_OBJECT_DECLARATION(
TableFieldCollection, CODEPORTING_ARGS());
193 ASPOSE_TASKS_SHARED_API System::SharedPtr<
TableField> FindByField(Field
id);
197 #ifdef ASPOSE_GET_SHARED_MEMBERS
198 ASPOSE_TASKS_SHARED_API
void GetSharedMembers(System::Object::shared_members_type& result)
const override;
204 System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<TableField>>> fields;
Contains a list of TableField objects. Implements IList<TableField> interface.
Definition: TableFieldCollection.h:51
int32_t get_Count() const override
Gets the number of elements contained in this collection.
bool Contains(const System::SharedPtr< TableField > &item) const override
Returns true if the specified item is found in this collection; otherwise, false.
void Clear() override
Removes all items from this collection.
void RemoveAt(int32_t index) override
Removes an item at the specified index.
bool get_IsReadOnly() const override
Gets a value indicating whether this collection is read-only; otherwise, false.
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< TableField > > > GetEnumerator() override
Returns an enumerator for this collection.
void idx_set(int32_t index, System::SharedPtr< TableField > value) override
Sets the element at the specified index.
typename iterator_holder_type::const_iterator const_iterator
Const iterator type.
Definition: TableFieldCollection.h:67
void Add(const System::SharedPtr< TableField > &item) override
Adds the specified item to this collection.
void CopyTo(System::ArrayPtr< System::SharedPtr< TableField >> 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< TableField > &item) override
Removes the first occurrence of a specific object from this collection.
typename iterator_holder_type::iterator iterator
Iterator type.
Definition: TableFieldCollection.h:65
typename iterator_holder_type::virtualized_iterator virtualized_iterator
Virtualized type.
Definition: TableFieldCollection.h:71
System::SharedPtr< TableField > idx_get(int32_t index) const override
Returns the element at the specified index.
iterator begin() noexcept
typename iterator_holder_type::virtualized_iterator_element virtualized_iterator_element
Virtualized element type.
Definition: TableFieldCollection.h:69
System::Collections::Generic::List< System::SharedPtr< TableField > > iterator_holder_type
A collection type whose iterator types is used as iterator types in the current collection.
Definition: TableFieldCollection.h:63
int32_t IndexOf(const System::SharedPtr< TableField > &item) const override
Determines the index of the specified item in this collection.
void Insert(int32_t index, const System::SharedPtr< TableField > &item) override
Inserts the specified item at the specified index.
Represents a field of a table in a project.
Definition: TableField.h:33
Represents a table in Project
Definition: Table.h:46