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  /// <summary>
84  /// Gets the index of a <see cref="GroupCriterion"></see> object in the containing <see cref="GroupCriterionCollection"></see> collection.
85  /// </summary>
86  ASPOSE_TASKS_SHARED_API int32_t get_Index() const;
87  /// <summary>
88  /// Gets the parent of the <see cref="GroupCriterion"></see> object.
89  /// </summary>
90  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Group>& get_ParentGroup() const;
91  /// <summary>
92  /// Gets the type of grouping for a field used as a criterion in a group definition.
93  /// </summary>
94  ASPOSE_TASKS_SHARED_API Aspose::Tasks::GroupOn get_GroupOn() const;
95  /// <summary>
96  /// Sets the type of grouping for a field used as a criterion in a group definition.
97  /// </summary>
98  ASPOSE_TASKS_SHARED_API void set_GroupOn(Aspose::Tasks::GroupOn value);
99  /// <summary>
100  /// Gets the pattern of the cell for a field used as a criterion in a group definition.
101  /// </summary>
102  ASPOSE_TASKS_SHARED_API BackgroundPattern get_Pattern() const;
103  /// <summary>
104  /// Sets the pattern of the cell for a field used as a criterion in a group definition.
105  /// </summary>
106  ASPOSE_TASKS_SHARED_API void set_Pattern(BackgroundPattern value);
107  /// <summary>
108  /// Gets the start of the intervals for a field used as a criterion in a group definition.
109  /// </summary>
110  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_StartAt() const;
111  /// <summary>
112  /// Sets the start of the intervals for a field used as a criterion in a group definition.
113  /// </summary>
114  ASPOSE_TASKS_SHARED_API void set_StartAt(const System::SharedPtr<System::Object>& value);
115  /// <summary>
116  /// Gets the interval for a field used as a criterion in a group definition.
117  /// </summary>
118  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Object>& get_GroupInterval() const;
119  /// <summary>
120  /// Sets the interval for a field used as a criterion in a group definition.
121  /// </summary>
122  ASPOSE_TASKS_SHARED_API void set_GroupInterval(const System::SharedPtr<System::Object>& value);
123  /// <summary>
124  /// Gets the font for a criterion in a group definition.
125  /// </summary>
126  ASPOSE_TASKS_SHARED_API const System::SharedPtr<Visualization::FontDescriptor>& get_Font() const;
127  /// <summary>
128  /// Sets the font for a criterion in a group definition.
129  /// </summary>
130  ASPOSE_TASKS_SHARED_API void set_Font(const System::SharedPtr<Visualization::FontDescriptor>& value);
131 
132  /// <summary>
133  /// Returns a value indicating whether this instance is equal to a specified object.
134  /// </summary>
135  /// <param name="obj">The object to compare with this instance.</param>
136  /// <returns><b>True</b> if o is a GroupCriterion that has the same UID value as this instance; otherwise, <b>false</b>.</returns>
137  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
138  /// <summary>Serves as a hash function for a particular type. </summary>
139  /// <returns>A hash code for the current <see cref="System::Object"></see>.</returns>
140  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
141 
142  ASPOSE_TASKS_SHARED_API GroupCriterion();
143 
144 protected:
145 
146  /// <summary>
147  /// Gets the index of a <see cref="GroupCriterion"></see> object in the containing <see cref="GroupCriterionCollection"></see> collection.
148  /// </summary>
149  ASPOSE_TASKS_SHARED_API void set_Index(int32_t value);
150  /// <summary>
151  /// Gets the parent of the <see cref="GroupCriterion"></see> object.
152  /// </summary>
153  ASPOSE_TASKS_SHARED_API void set_ParentGroup(const System::SharedPtr<Group>& value);
154 
155  #ifdef ASPOSE_GET_SHARED_MEMBERS
156  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
157  #endif
158 
159 
160 private:
161 
162  System::Guid guid;
163  bool pr_Ascending;
164  System::Drawing::Color pr_CellColor;
165  System::Drawing::Color pr_FontColor;
166  Aspose::Tasks::Field pr_Field;
167  int32_t pr_Index;
168  System::WeakPtr<Group> pr_ParentGroup;
169  Aspose::Tasks::GroupOn pr_GroupOn;
170  BackgroundPattern pr_Pattern;
171  System::SharedPtr<System::Object> pr_StartAt;
172  System::SharedPtr<System::Object> pr_GroupInterval;
173  System::SharedPtr<Visualization::FontDescriptor> pr_Font;
174 
175 };
176 
177 } // namespace Tasks
178 } // namespace Aspose
179 
180 
Contains a collection of GroupCriterion objects. Implements ICollection<GroupCriterion> interface.
Definition: GroupCriterionCollection.h:43
Represents a criterion in a group definition. The GroupCriterion object is a member of the GroupCrite...
Definition: GroupCriterion.h:40
const System::SharedPtr< Group > & get_ParentGroup() const
Gets the parent of the GroupCriterion object.
bool get_Ascending() const
Gets a value indicating whether a field used as a criterion in a group definition is sorted in ascend...
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a value indicating whether this instance is equal to a specified object.
const System::SharedPtr< System::Object > & get_StartAt() const
Gets the start of the intervals for a field used as a criterion in a group definition.
int32_t get_Index() const
Gets the index of a GroupCriterion object in the containing GroupCriterionCollection collection.
void set_Font(const System::SharedPtr< Visualization::FontDescriptor > &value)
Sets the font for a criterion in a group definition.
BackgroundPattern get_Pattern() const
Gets the pattern of the cell for a field used as a criterion in a group definition.
void set_CellColor(System::Drawing::Color value)
Sets the color of the cell background for a field used as a criterion in a group definition.
void set_StartAt(const System::SharedPtr< System::Object > &value)
Sets the start of the intervals for a field used as a criterion in a group definition.
void set_Pattern(BackgroundPattern value)
Sets the pattern of the cell for a field used as a criterion in a group definition.
void set_FontColor(System::Drawing::Color value)
Sets the color of the font for a field used as a criterion in a group definition.
void set_GroupOn(Aspose::Tasks::GroupOn value)
Sets the type of grouping for a field used as a criterion in a group definition.
void set_Ascending(bool value)
Sets a value indicating whether a field used as a criterion in a group definition is sorted in ascend...
System::Drawing::Color get_CellColor() const
Gets the color of the cell background for a field used as a criterion in a group definition.
Aspose::Tasks::Field get_Field() const
Gets the field being grouped by.
System::Drawing::Color get_FontColor() const
Gets the color of the font for a field used as a criterion in a group definition.
const System::SharedPtr< Visualization::FontDescriptor > & get_Font() const
Gets the font for a criterion in a group definition.
Aspose::Tasks::GroupOn get_GroupOn() const
Gets the type of grouping for a field used as a criterion in a group definition.
const System::SharedPtr< System::Object > & get_GroupInterval() const
Gets the interval for a field used as a criterion in a group definition.
void set_GroupInterval(const System::SharedPtr< System::Object > &value)
Sets the interval for a field used as a criterion in a group definition.
void set_Field(Aspose::Tasks::Field value)
Sets the field being grouped by.
int32_t GetHashCode() const override
Serves as a hash function for a particular type.
Definition: Asn.h:13