CustomXmlPropertyCollection.h
1 // Copyright 2001-2022 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/ienumerable.h>
13 #include <cstdint>
14 
15 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
16 
17 namespace Aspose
18 {
19 
20 namespace Words
21 {
22 namespace Markup
23 {
24 class CustomXmlProperty;
25 
26 }
27 
28 }
29 }
30 namespace System
31 {
32 namespace Collections
33 {
34 namespace Generic
35 {
36 template <typename> class IEnumerator;
37 }
38 }
39 class String;
40 }
41 
42 namespace Aspose {
43 
44 namespace Words {
45 
46 namespace Markup {
47 
104 class ASPOSE_WORDS_SHARED_CLASS CustomXmlPropertyCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Markup::CustomXmlProperty>>
105 {
108 
109  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
110  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
111 
112 public:
113 
168  ASPOSE_WORDS_SHARED_API int32_t get_Count();
169 
227 
285 
341 
398  ASPOSE_WORDS_SHARED_API void Add(const System::SharedPtr<Aspose::Words::Markup::CustomXmlProperty>& property);
399 
458  ASPOSE_WORDS_SHARED_API bool Contains(const System::String& name);
459 
518  ASPOSE_WORDS_SHARED_API int32_t IndexOfKey(const System::String& name);
519 
576  ASPOSE_WORDS_SHARED_API void Remove(const System::String& name);
577 
634  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
635 
690  ASPOSE_WORDS_SHARED_API void Clear();
691 
692 protected:
693 
695 
696  virtual ASPOSE_WORDS_SHARED_API ~CustomXmlPropertyCollection();
697 
698 private:
699 
701 
702 };
703 
704 }
705 }
706 }