DocumentPropertyCollection.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/string.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 { namespace Collections { namespace Generic { template <typename> class SortedStringListGeneric; } } }
18 namespace System { namespace Collections { namespace Generic { template <typename> class IEnumerator; } } }
19 namespace Aspose { namespace Words { namespace Properties { class DocumentProperty; } } }
20 namespace Aspose { namespace Words { class Document; } }
21 namespace Aspose { namespace Words { namespace Properties { class CustomDocumentProperties; } } }
22 namespace Aspose { namespace Words { namespace RW { namespace Odt { namespace Reader { class OdtMetaReader; } } } } }
23 namespace Aspose { namespace Words { namespace RW { namespace Docx { namespace Reader { class DocxCustomPropertiesReader; } } } } }
24 namespace Aspose { namespace Words { namespace RW { namespace Doc { class DocPropertiesFiler; } } } }
25 namespace Aspose { namespace Words { namespace RW { namespace Rtf { namespace Reader { class RtfUserPropertiesHandler; } } } } }
26 namespace Aspose { namespace Words { namespace RW { namespace Wml { namespace Reader { class WmlDocPropertiesReader; } } } } }
27 
28 namespace Aspose {
29 
30 namespace Words {
31 
32 namespace Properties {
33 
102 class ASPOSE_WORDS_SHARED_CLASS DocumentPropertyCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Properties::DocumentProperty>>
103 {
106 
107  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
108  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
109 
110 public:
111 
134  ASPOSE_WORDS_SHARED_API int32_t get_Count();
135 
153 
179 
242 
308  ASPOSE_WORDS_SHARED_API bool Contains(const System::String& name);
309 
375  ASPOSE_WORDS_SHARED_API int32_t IndexOf(const System::String& name);
376 
440  ASPOSE_WORDS_SHARED_API void Remove(const System::String& name);
441 
505  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
506 
568  ASPOSE_WORDS_SHARED_API void Clear();
569 
570 protected:
571 
573 
574  virtual ASPOSE_WORDS_SHARED_API ~DocumentPropertyCollection();
575 
576 private:
577 
579 
580 };
581 
582 }
583 }
584 }