Aspose.Tasks for C++
GroupCriterion.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="GroupCriterion.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 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 enum class GroupOn;
22 namespace Visualization
23 {
24 class FontDescriptor;
25 } // namespace Visualization
26 } // namespace Tasks
27 } // namespace Aspose
28 
29 namespace Aspose {
30 
31 namespace Tasks {
32 
33 /// <summary>
34 /// Represents a criterion in a group definition.
35 /// The GroupCriterion object is a member of the <see cref="GroupCriterionCollection"></see> collection.
36 /// </summary>
37 class ASPOSE_TASKS_SHARED_CLASS GroupCriterion : public System::Object
38 {
39  typedef GroupCriterion ThisType;
40  typedef System::Object BaseType;
41 
42  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
43  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
44 
45 public:
46 
47  /// <summary>
48  /// 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.
49  /// </summary>
50  ASPOSE_TASKS_SHARED_API bool get_Ascending() const;
51  /// <summary>
52  /// 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.
53  /// </summary>
54  ASPOSE_TASKS_SHARED_API void set_Ascending(bool value);
55  /// <summary>
56  /// Gets the color of the cell background for a field used as a criterion in a group definition.
57  /// </summary>
58  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_CellColor() const;
59  /// <summary>
60  /// Sets the color of the cell background for a field used as a criterion in a group definition.
61  /// </summary>
62  ASPOSE_TASKS_SHARED_API void set_CellColor(System::Drawing::Color value);
63  /// <summary>
64  /// Gets the color of the font for a field used as a criterion in a group definition.
65  /// </summary>
66  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_FontColor() const;
67  /// <summary>
68  /// Sets the color of the font for a field used as a criterion in a group definition.
69  /// </summary>
70  ASPOSE_TASKS_SHARED_API void set_FontColor(System::Drawing::Color value);
71  /// <summary>
72  /// Gets the field being grouped by.
73  /// </summary>
74  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Field get_Field() const;
75  /// <summary>
76  /// Sets the field being grouped by.
77  /// </summary>
78  ASPOSE_TASKS_SHARED_API void set_Field(Aspose::Tasks::Field value);
79  /// <summary>
80  /// Gets the type of grouping for a field used as a criterion in a group definition.
81  /// </summary>
82  ASPOSE_TASKS_SHARED_API Aspose::Tasks::GroupOn get_GroupOn() const;
83  /// <summary>
84  /// Sets the type of grouping for a field used as a criterion in a group definition.
85  /// </summary>
86  ASPOSE_TASKS_SHARED_API void set_GroupOn(Aspose::Tasks::GroupOn value);
87  /// <summary>
88  /// Gets the pattern of the cell for a field used as a criterion in a group definition.
89  /// </summary>
90  ASPOSE_TASKS_SHARED_API BackgroundPattern get_Pattern() const;
91  /// <summary>
92  /// Sets the pattern of the cell for a field used as a criterion in a group definition.
93  /// </summary>
94  ASPOSE_TASKS_SHARED_API void set_Pattern(BackgroundPattern value);
95  /// <summary>
96  /// Gets the start of the intervals for a field used as a criterion in a group definition.
97  /// </summary>
98  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_StartAt() const;
99  /// <summary>
100  /// Sets the start of the intervals for a field used as a criterion in a group definition.
101  /// </summary>
102  ASPOSE_TASKS_SHARED_API void set_StartAt(const System::SharedPtr<System::Object>& value);
103  /// <summary>
104  /// Gets the interval for a field used as a criterion in a group definition.
105  /// </summary>
106  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_GroupInterval() const;
107  /// <summary>
108  /// Sets the interval for a field used as a criterion in a group definition.
109  /// </summary>
110  ASPOSE_TASKS_SHARED_API void set_GroupInterval(const System::SharedPtr<System::Object>& value);
111  /// <summary>
112  /// Gets the font for a criterion in a group definition.
113  /// </summary>
114  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Visualization::FontDescriptor>& get_Font() const;
115  /// <summary>
116  /// Sets the font for a criterion in a group definition.
117  /// </summary>
118  ASPOSE_TASKS_SHARED_API void set_Font(const System::SharedPtr<Visualization::FontDescriptor>& value);
119 
120  /// <summary>
121  /// Returns a value indicating whether this instance is equal to a specified object.
122  /// </summary>
123  /// <param name="obj">The object to compare with this instance.</param>
124  /// <returns><b>True</b> if o is a GroupCriterion that has the same UID value as this instance; otherwise, <b>false</b>.</returns>
125  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
126  /// <summary>Serves as a hash function for a particular type. </summary>
127  /// <returns>A hash code for the current <see cref="System::Object"></see>.</returns>
128  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
129 
130  ASPOSE_TASKS_SHARED_API GroupCriterion();
131 
132 protected:
133 
134  #ifdef ASPOSE_GET_SHARED_MEMBERS
135  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
136  #endif
137 
138 
139 private:
140 
141  System::Guid guid;
142  bool pr_Ascending;
143  System::Drawing::Color pr_CellColor;
144  System::Drawing::Color pr_FontColor;
145  Aspose::Tasks::Field pr_Field;
146  Aspose::Tasks::GroupOn pr_GroupOn;
147  BackgroundPattern pr_Pattern;
148  System::SharedPtr<System::Object> pr_StartAt;
149  System::SharedPtr<System::Object> pr_GroupInterval;
150  System::SharedPtr<Visualization::FontDescriptor> pr_Font;
151 
152 };
153 
154 } // namespace Tasks
155 } // namespace Aspose
156 
157 
Definition: Asn.h:12
Represents a criterion in a group definition. The GroupCriterion object is a member of the GroupCrite...
Definition: GroupCriterion.h:37