search/mag_sel search/close
CustomPartCollection.h
1 // Copyright 2001-2021 Aspose Pty Ltd. All Rights Reserved.
3 //
4 // This file is part of Aspose.Words. The source code in this file
5 // is only intended as a supplement to the documentation, and is provided
6 // "as is", without warranty of any kind, either expressed or implied.
9 #pragma once
10 
11 #include <system/shared_ptr.h>
12 #include <system/collections/list.h>
13 #include <system/collections/ienumerable.h>
14 #include <cstdint>
15 
16 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
17 
18 namespace System { namespace Collections { namespace Generic { template <typename> class IEnumerator; } } }
19 namespace Aspose { namespace Words { namespace Markup { class CustomPart; } } }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Markup {
26 
76 class ASPOSE_WORDS_SHARED_CLASS CustomPartCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Markup::CustomPart>>
77 {
80 
81  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
82  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
83 
84 public:
85 
87 
89 
91 
92 public:
93 
137  ASPOSE_WORDS_SHARED_API int32_t get_Count();
138 
184  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Markup::CustomPart> idx_get(int32_t index);
185 
231  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, System::SharedPtr<Aspose::Words::Markup::CustomPart> value);
232 
277 
323  ASPOSE_WORDS_SHARED_API void Add(System::SharedPtr<Aspose::Words::Markup::CustomPart> part);
324 
370  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
371 
415  ASPOSE_WORDS_SHARED_API void Clear();
416 
461 
462  ASPOSE_WORDS_SHARED_API CustomPartCollection();
463 
464  ASPOSE_WORDS_SHARED_API iterator begin() noexcept;
465 
466  ASPOSE_WORDS_SHARED_API iterator end() noexcept;
467 
468  ASPOSE_WORDS_SHARED_API const_iterator begin() const noexcept;
469 
470  ASPOSE_WORDS_SHARED_API const_iterator end() const noexcept;
471 
472  ASPOSE_WORDS_SHARED_API const_iterator cbegin() const noexcept;
473 
474  ASPOSE_WORDS_SHARED_API const_iterator cend() const noexcept;
475 
476 protected:
477 
478  virtual ASPOSE_WORDS_SHARED_API ~CustomPartCollection();
479 
480 private:
481 
482  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Markup::CustomPart>>> mItems;
483 
484 };
485 
486 }
487 }
488 }