Aspose.Tasks for C++
GroupCriterion.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="GroupCriterion.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/object.h>
9 #include <system/guid.h>
10 #include <drawing/color.h>
11 #include <cstdint>
12 
13 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
14 
15 namespace Aspose
16 {
17 namespace Tasks
18 {
19 enum class BackgroundPattern;
20 enum class Field;
21 class Group;
22 class GroupCriterionCollection;
23 enum class GroupOn;
24 namespace Visualization
25 {
26 class FontDescriptor;
27 } // namespace Visualization
28 } // namespace Tasks
29 } // namespace Aspose
30 
31 namespace Aspose {
32 
33 namespace Tasks {
34 
35 /// <summary>
36 /// Represents a criterion in a group definition.
37 /// The GroupCriterion object is a member of the <see cref="GroupCriterionCollection"></see> collection.
38 /// </summary>
39 class ASPOSE_TASKS_SHARED_CLASS GroupCriterion : public System::Object
40 {
41  typedef GroupCriterion ThisType;
42  typedef System::Object BaseType;
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 
48 
49 public:
50 
51  /// <summary>
52  /// Gets a value indicating whether a field used as a criterion in a group definition is sorted in ascending order. False if the field is sorted in descending order.
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API bool get_Ascending() const;
55  /// <summary>
56  /// Sets a value indicating whether a field used as a criterion in a group definition is sorted in ascending order. False if the field is sorted in descending order.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API void set_Ascending(bool value);
59  /// <summary>
60  /// Gets the color of the cell background for a field used as a criterion in a group definition.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_CellColor() const;
63  /// <summary>
64  /// Sets the color of the cell background for a field used as a criterion in a group definition.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API void set_CellColor(System::Drawing::Color value);
67  /// <summary>
68  /// Gets the color of the font for a field used as a criterion in a group definition.
69  /// </summary>
70  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_FontColor() const;
71  /// <summary>
72  /// Sets the color of the font for a field used as a criterion in a group definition.
73  /// </summary>
74  ASPOSE_TASKS_SHARED_API void set_FontColor(System::Drawing::Color value);
75  /// <summary>
76  /// Gets the field being grouped by.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Field get_Field() const;
79  /// <summary>
80  /// Sets the field being grouped by.
81  /// </summary>
82  ASPOSE_TASKS_SHARED_API void set_Field(Aspose::Tasks::Field value);
83  /// @deprecated This member is obsolete and will be removed after release 25.6.
84  /// <summary>
85  /// Gets the index of a <see cref="GroupCriterion"></see> object in the containing <see cref="GroupCriterionCollection"></see> collection.
86  /// </summary>
87  ASPOSE_TASKS_SHARED_API int32_t get_Index() const;
88  /// @deprecated This member is obsolete and will be removed after release 25.6.
89  /// <summary>
90  /// Gets the parent of the <see cref="GroupCriterion"></see> object.
91  /// </summary>
92  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Group>& get_ParentGroup() const;
93  /// <summary>
94  /// Gets the type of grouping for a field used as a criterion in a group definition.
95  /// </summary>
96  ASPOSE_TASKS_SHARED_API Aspose::Tasks::GroupOn get_GroupOn() const;
97  /// <summary>
98  /// Sets the type of grouping for a field used as a criterion in a group definition.
99  /// </summary>
100  ASPOSE_TASKS_SHARED_API void set_GroupOn(Aspose::Tasks::GroupOn value);
101  /// <summary>
102  /// Gets the pattern of the cell for a field used as a criterion in a group definition.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API BackgroundPattern get_Pattern() const;
105  /// <summary>
106  /// Sets the pattern of the cell for a field used as a criterion in a group definition.
107  /// </summary>
108  ASPOSE_TASKS_SHARED_API void set_Pattern(BackgroundPattern value);
109  /// <summary>
110  /// Gets the start of the intervals for a field used as a criterion in a group definition.
111  /// </summary>
112  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_StartAt() const;
113  /// <summary>
114  /// Sets the start of the intervals for a field used as a criterion in a group definition.
115  /// </summary>
116  ASPOSE_TASKS_SHARED_API void set_StartAt(const System::SharedPtr<System::Object>& value);
117  /// <summary>
118  /// Gets the interval for a field used as a criterion in a group definition.
119  /// </summary>
120  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_GroupInterval() const;
121  /// <summary>
122  /// Sets the interval for a field used as a criterion in a group definition.
123  /// </summary>
124  ASPOSE_TASKS_SHARED_API void set_GroupInterval(const System::SharedPtr<System::Object>& value);
125  /// <summary>
126  /// Gets the font for a criterion in a group definition.
127  /// </summary>
128  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Visualization::FontDescriptor>& get_Font() const;
129  /// <summary>
130  /// Sets the font for a criterion in a group definition.
131  /// </summary>
132  ASPOSE_TASKS_SHARED_API void set_Font(const System::SharedPtr<Visualization::FontDescriptor>& value);
133 
134  /// <summary>
135  /// Returns a value indicating whether this instance is equal to a specified object.
136  /// </summary>
137  /// <param name="obj">The object to compare with this instance.</param>
138  /// <returns><b>True</b> if o is a GroupCriterion that has the same UID value as this instance; otherwise, <b>false</b>.</returns>
139  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
140  /// <summary>Serves as a hash function for a particular type. </summary>
141  /// <returns>A hash code for the current <see cref="System::Object"></see>.</returns>
142  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
143 
144  ASPOSE_TASKS_SHARED_API GroupCriterion();
145 
146 protected:
147 
148  /// @deprecated This member is obsolete and will be removed after release 25.6.
149  /// <summary>
150  /// Gets the index of a <see cref="GroupCriterion"></see> object in the containing <see cref="GroupCriterionCollection"></see> collection.
151  /// </summary>
152  ASPOSE_TASKS_SHARED_API void set_Index(int32_t value);
153  /// @deprecated This member is obsolete and will be removed after release 25.6.
154  /// <summary>
155  /// Gets the parent of the <see cref="GroupCriterion"></see> object.
156  /// </summary>
157  ASPOSE_TASKS_SHARED_API void set_ParentGroup(const System::SharedPtr<Group>& value);
158 
159  #ifdef ASPOSE_GET_SHARED_MEMBERS
160  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
161  #endif
162 
163 
164 private:
165 
166  System::Guid guid;
167  bool pr_Ascending;
168  System::Drawing::Color pr_CellColor;
169  System::Drawing::Color pr_FontColor;
170  Aspose::Tasks::Field pr_Field;
171  int32_t pr_Index;
172  System::WeakPtr<Group> pr_ParentGroup;
173  Aspose::Tasks::GroupOn pr_GroupOn;
174  BackgroundPattern pr_Pattern;
175  System::SharedPtr<System::Object> pr_StartAt;
176  System::SharedPtr<System::Object> pr_GroupInterval;
177  System::SharedPtr<Visualization::FontDescriptor> pr_Font;
178 
179 };
180 
181 } // namespace Tasks
182 } // namespace Aspose
183 
184 
Represents a criterion in a group definition. The GroupCriterion object is a member of the GroupCrite...
Definition: GroupCriterion.h:39
const System::SharedPtr< Group > & get_ParentGroup() const
Gets the parent of the GroupCriterion object.
Contains a collection of GroupCriterion objects. Implements ICollection<GroupCriterion> interface...
Definition: GroupCriterionCollection.h:42