CustomPartCollection.h
1 #pragma once
2 // Copyright (c) 2001-2020 Aspose Pty Ltd. All Rights Reserved.
3 // 03/05/2010 by Roman Korchagin
4 
5 #include <system/shared_ptr.h>
6 #include <system/collections/list.h>
7 #include <system/collections/ienumerator.h>
8 #include <system/collections/ienumerable.h>
9 
10 #include "Aspose.Words.Cpp/Model/Markup/CustomPart.h"
11 
12 
13 namespace Aspose {
14 
15 namespace Words {
16 
17 namespace Markup {
18 
19 /// <summary>
20 /// Represents a collection of <see cref="CustomPart"/> objects.
21 /// </summary>
22 /// <remarks>
23 /// <para>You do not normally need to create instances of this class. You access custom parts
24 /// related to the OOXML package via the <see cref="Document.PackageCustomParts"/> property.</para>
25 ///
26 /// <seealso cref="CustomPart"/>
27 /// <seealso cref="Document.PackageCustomParts"/>
28 /// </remarks>
29 class CustomPartCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Markup::CustomPart>>
30 {
31  typedef CustomPartCollection ThisType;
32  typedef System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Markup::CustomPart>> BaseType;
33 
34  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
36 
37 public:
38 
40 
41  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Markup::CustomPart> idx_get(int32_t index);
42  ASPOSE_WORDS_SHARED_API void idx_set(int32_t index, System::SharedPtr<Aspose::Words::Markup::CustomPart> value);
43 
44  ASPOSE_WORDS_SHARED_API System::SharedPtr<System::Collections::Generic::IEnumerator<System::SharedPtr<Aspose::Words::Markup::CustomPart>>> GetEnumerator();
46  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
49 
51 
52 protected:
53 
54  virtual ASPOSE_WORDS_SHARED_API ~CustomPartCollection();
55 
56  ASPOSE_WORDS_SHARED_API System::Object::shared_members_type GetSharedMembers() override;
57 
58 private:
59 
60  System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Aspose::Words::Markup::CustomPart>>> mItems;
61 
62 };
63 
64 } // namespace Markup
65 } // namespace Words
66 } // namespace Aspose
Definition: Hyphenation.h:12
int32_t get_Count()
Definition: Hyphenation.h:12
System::SharedPtr< Aspose::Words::Markup::CustomPart > idx_get(int32_t index)
void RemoveAt(int32_t index)
Represents a custom (arbitrary content) part, that is not defined by the ISO/IEC 29500 standard.
Definition: CustomPart.h:43
Represents a collection of CustomPart objects.
Definition: CustomPartCollection.h:29
Definition: Document.h:68
@ InsertLineBreaks
Insert line breaks after every 76th character.
void idx_set(int32_t index, System::SharedPtr< Aspose::Words::Markup::CustomPart > value)
#define ASPOSE_WORDS_SHARED_API
Definition: aspose_words_api_defs.h:3
void Add(System::SharedPtr< Aspose::Words::Markup::CustomPart > part)
System::Details::SharedMembersType shared_members_type
structure to keep list of shared pointers contained in object.
Definition: object.h:68
CustomPartCollection()
void Clear()
System::SharedPtr< System::Collections::Generic::IEnumerator< System::SharedPtr< Aspose::Words::Markup::CustomPart > > > GetEnumerator()
System::SharedPtr< Aspose::Words::Markup::CustomPartCollection > Clone()
#define ASPOSE_WORDS_SHARED_RTTI_INFO_DECL()
Definition: aspose_words_api_defs.h:5
Definition: ienumerable.h:18
Definition: ienumerator.h:20