Aspose.Tasks for C++
TableField.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="TableField.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/string.h>
9 #include <cstdint>
10 
11 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
12 
13 namespace Aspose
14 {
15 namespace Tasks
16 {
17 enum class Field;
18 namespace Visualization
19 {
20 enum class HorizontalStringAlignment;
21 } // namespace Visualization
22 } // namespace Tasks
23 } // namespace Aspose
24 
25 namespace Aspose {
26 
27 namespace Tasks {
28 
29 /// <summary>
30 /// Represents a field of a table in a project.
31 /// </summary>
32 class ASPOSE_TASKS_SHARED_CLASS TableField : public System::Object
33 {
34  typedef TableField ThisType;
35  typedef System::Object BaseType;
36 
37  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
38  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
39 
40 public:
41 
42  /// <summary>
43  /// Gets the alignment of data in a table field.
44  /// </summary>
45  ASPOSE_TASKS_SHARED_API Visualization::HorizontalStringAlignment get_AlignData() const;
46  /// <summary>
47  /// Sets the alignment of data in a table field.
48  /// </summary>
49  ASPOSE_TASKS_SHARED_API void set_AlignData(Visualization::HorizontalStringAlignment value);
50  /// <summary>
51  /// Gets the alignment of the title in a table field.
52  /// </summary>
53  ASPOSE_TASKS_SHARED_API Visualization::HorizontalStringAlignment get_AlignTitle() const;
54  /// <summary>
55  /// Sets the alignment of the title in a table field.
56  /// </summary>
57  ASPOSE_TASKS_SHARED_API void set_AlignTitle(Visualization::HorizontalStringAlignment value);
58  /// <summary>
59  /// Gets the type of a table field.
60  /// </summary>
61  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Field get_Field() const;
62  /// <summary>
63  /// Sets the type of a table field.
64  /// </summary>
65  ASPOSE_TASKS_SHARED_API void set_Field(Aspose::Tasks::Field value);
66  /// <summary>
67  /// Gets the title of the field in a table.
68  /// </summary>
69  ASPOSE_TASKS_SHARED_API System::String get_Title() const;
70  /// <summary>
71  /// Sets the title of the field in a table.
72  /// </summary>
73  ASPOSE_TASKS_SHARED_API void set_Title(const System::String& value);
74  /// <summary>
75  /// Gets the width in points of the field column in a table.
76  /// </summary>
77  ASPOSE_TASKS_SHARED_API int32_t get_Width() const;
78  /// <summary>
79  /// Sets the width in points of the field column in a table.
80  /// </summary>
81  ASPOSE_TASKS_SHARED_API void set_Width(int32_t value);
82  /// <summary>
83  /// Gets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
84  /// </summary>
85  ASPOSE_TASKS_SHARED_API bool get_WrapHeader() const;
86  /// <summary>
87  /// Sets a value indicating whether the table column heading can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
88  /// </summary>
89  ASPOSE_TASKS_SHARED_API void set_WrapHeader(bool value);
90  /// <summary>
91  /// Gets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
92  /// <remarks>Supported by MSP 2010 version and later.</remarks>
93  /// </summary>
94  ASPOSE_TASKS_SHARED_API bool get_WrapText() const;
95  /// <summary>
96  /// Sets a value indicating whether the column text can wrap to multiple lines, or if it should be truncated when it exceeds the column width.
97  /// <remarks>Supported by MSP 2010 version and later.</remarks>
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API void set_WrapText(bool value);
100 
101  /// <summary>
102  /// Initializes a new instance of the <see cref="TableField"></see> class.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API TableField();
105 
106 protected:
107 
108  #ifdef ASPOSE_GET_SHARED_MEMBERS
109  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
110  #endif
111 
112 
113 private:
114 
115  Visualization::HorizontalStringAlignment pr_AlignData;
116  Visualization::HorizontalStringAlignment pr_AlignTitle;
117  Aspose::Tasks::Field pr_Field;
118  System::String pr_Title;
119  int32_t pr_Width;
120  bool pr_WrapHeader;
121  bool pr_WrapText;
122 
123 };
124 
125 } // namespace Tasks
126 } // namespace Aspose
127 
128 
Represents a field of a table in a project.
Definition: TableField.h:32