search/mag_sel search/close
FieldUserName.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 <cstdint>
12 
13 #include <Aspose.Words.Cpp/Fields/Field.h>
14 #include <Aspose.Words.Cpp/aspose_words_api_defs.h>
15 
16 namespace System { class String; }
17 namespace Aspose { namespace Words { namespace Fields { class FieldUpdateAction; } } }
18 namespace System { template <typename> class SmartPtr; }
19 namespace System { template <typename T0> using SharedPtr = System::SmartPtr<T0>; }
20 
21 namespace Aspose {
22 
23 namespace Words {
24 
25 namespace Fields {
26 
63 class ASPOSE_WORDS_SHARED_CLASS FieldUserName : public Aspose::Words::Fields::Field
64 {
65  typedef FieldUserName ThisType;
67 
68  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
69  ASPOSE_WORDS_SHARED_RTTI_INFO_DECL();
70 
71 public:
72 
109  ASPOSE_WORDS_SHARED_API System::String get_UserName();
110 
112  ASPOSE_WORDS_SHARED_API void set_UserName(System::String value);
113 
114 protected:
115 
116  ASPOSE_WORDS_SHARED_API System::SharedPtr<Aspose::Words::Fields::FieldUpdateAction> UpdateCore() override;
117 
118  virtual ASPOSE_WORDS_SHARED_API ~FieldUserName();
119 
120 private:
121 
122  static const int32_t UserNameArgumentIndex;
123  static const int32_t MaxResultLength;
124 
125 };
126 
127 }
128 }
129 }