DocumentPropertyCollection.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 
23 namespace Properties
24 {
25 
26 class DocumentProperty;
27 }
28 
29 }
30 }
31 namespace System
32 {
33 namespace Collections
34 {
35 namespace Generic
36 {
37 template <typename> class IEnumerator;
38 }
39 }
40 class String;
41 }
42 
43 namespace Aspose {
44 
45 namespace Words {
46 
47 namespace Properties {
48 
117 class ASPOSE_WORDS_SHARED_CLASS DocumentPropertyCollection : public System::Collections::Generic::IEnumerable<System::SharedPtr<Aspose::Words::Properties::DocumentProperty>>
118 {
121 
122  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
123  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
124 
125 public:
126 
149  ASPOSE_WORDS_SHARED_API int32_t get_Count();
150 
168 
194 
257 
323  ASPOSE_WORDS_SHARED_API bool Contains(const System::String& name);
324 
390  ASPOSE_WORDS_SHARED_API int32_t IndexOf(const System::String& name);
391 
455  ASPOSE_WORDS_SHARED_API void Remove(const System::String& name);
456 
520  ASPOSE_WORDS_SHARED_API void RemoveAt(int32_t index);
521 
583  ASPOSE_WORDS_SHARED_API void Clear();
584 
585 protected:
586 
588 
590 
591  virtual ASPOSE_WORDS_SHARED_API ~DocumentPropertyCollection();
592 
593 private:
594 
596 
597 };
598 
599 }
600 }
601 }