Aspose.Tasks for C++
Gridline.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="Gridline.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 Foundation
18 {
19 namespace Drawing
20 {
21 class DrColor;
22 } // namespace Drawing
23 } // namespace Foundation
24 namespace Tasks
25 {
26 namespace RiskAnalysis
27 {
28 namespace Reporting
29 {
30 class RiskReportBuilder;
31 } // namespace Reporting
32 } // namespace RiskAnalysis
33 namespace Visualization
34 {
35 template <typename> class ApsBaseChartBuilder;
36 class ApsGanttChartLayoutBuilder;
37 class ApsGlyphFactory;
38 template <typename, typename> class ApsUsageBuilder;
39 class ApsUsagePage;
40 namespace Charting
41 {
42 class ChartStyle;
43 class LineSeries;
44 } // namespace Charting
45 class Gridlines;
46 enum class GridlineType;
47 enum class LinePattern;
48 class TableStyle;
49 } // namespace Visualization
50 } // namespace Tasks
51 } // namespace Aspose
52 namespace System
53 {
54 namespace Collections
55 {
56 namespace Generic
57 {
58 template <typename> class List;
59 } // namespace Generic
60 } // namespace Collections
61 } // namespace System
62 
63 namespace Aspose {
64 
65 namespace Tasks {
66 
67 namespace Visualization {
68 
69 /// <summary>
70 /// The horizontal or vertical line that appears in the project view.
71 /// </summary>
72 class ASPOSE_TASKS_SHARED_CLASS Gridline : public System::Object
73 {
74  typedef Gridline ThisType;
75  typedef System::Object BaseType;
76 
77  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
78  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
79 
80  friend class Aspose::Tasks::Visualization::Charting::LineSeries;
81  template<typename FT0> friend class Aspose::Tasks::Visualization::ApsBaseChartBuilder;
82  friend class Aspose::Tasks::Visualization::ApsGanttChartLayoutBuilder;
83  template<typename FT0, typename FT1> friend class Aspose::Tasks::Visualization::ApsUsageBuilder;
84  friend class Aspose::Tasks::Visualization::ApsGlyphFactory;
85  friend class Aspose::Tasks::Visualization::ApsUsagePage;
86  friend class Aspose::Tasks::Visualization::Charting::ChartStyle;
87  friend class Aspose::Tasks::Visualization::TableStyle;
88  friend class Aspose::Tasks::RiskAnalysis::Reporting::RiskReportBuilder;
89 
90 public:
91 
92  /// <summary>
93  /// Gets the <see cref="Color"></see> of a gridline.
94  /// </summary>
95  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_Color() const;
96  /// <summary>
97  /// Sets the <see cref="Color"></see> of a gridline.
98  /// </summary>
99  ASPOSE_TASKS_SHARED_API void set_Color(System::Drawing::Color value);
100  /// <summary>
101  /// Gets the type of gridline (<see cref="GridlineType"></see>).
102  /// </summary>
103  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Visualization::GridlineType get_GridlineType() const;
104  /// <summary>
105  /// Sets the type of gridline (<see cref="GridlineType"></see>).
106  /// </summary>
107  ASPOSE_TASKS_SHARED_API void set_GridlineType(Aspose::Tasks::Visualization::GridlineType value);
108  /// <summary>
109  /// Gets the <see cref="LinePattern"></see> of a gridline.
110  /// </summary>
111  ASPOSE_TASKS_SHARED_API LinePattern get_Pattern() const;
112  /// <summary>
113  /// Sets the <see cref="LinePattern"></see> of a gridline.
114  /// </summary>
115  ASPOSE_TASKS_SHARED_API void set_Pattern(LinePattern value);
116 
117  /// <summary>
118  /// Initializes a new instance of the <see cref="Gridline"></see> class.
119  /// </summary>
120  ASPOSE_TASKS_SHARED_API Gridline();
121 
122  /// <summary>
123  /// Returns a flag indicating whether this instance is equal to the specified object.
124  /// </summary>
125  /// <param name="obj">the specified object to compare to this instance.</param>
126  /// <returns>a flag indicating whether this instance is equal to the specified object.</returns>
127  ASPOSE_TASKS_SHARED_API bool Equals(System::SharedPtr<System::Object> obj) override;
128  /// <summary>
129  /// Returns a hash code value for the instance of the <see cref="Gridline"></see> class.
130  /// </summary>
131  /// <returns>returns a hash code value for this object.</returns>
132  ASPOSE_TASKS_SHARED_API int32_t GetHashCode() const override;
133 
134 protected:
135 
136  ASPOSE_TASKS_SHARED_API System::SharedPtr<Aspose::Foundation::Drawing::DrColor> get_DrColor();
137  ASPOSE_TASKS_SHARED_API float get_LineWidth() const;
138  ASPOSE_TASKS_SHARED_API void set_LineWidth(float value);
139 
140  static ASPOSE_TASKS_SHARED_API System::SharedPtr<Gridline> GetDefaultGridline();
141  static ASPOSE_TASKS_SHARED_API System::SharedPtr<Gridline> GetGridline(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Gridline>>>& gridlines, Aspose::Tasks::Visualization::GridlineType type);
142  static ASPOSE_TASKS_SHARED_API System::SharedPtr<Gridline> GetGridline(const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Gridline>>>& gridlines, const System::SharedPtr<System::Collections::Generic::List<System::SharedPtr<Gridlines>>>& viewGridlines, Aspose::Tasks::Visualization::GridlineType type);
143  #ifdef ASPOSE_GET_SHARED_MEMBERS
144  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
145  #endif
146 
147 
148 private:
149 
150  System::Guid id;
151  System::Drawing::Color pr_Color;
152  Aspose::Tasks::Visualization::GridlineType pr_GridlineType;
153  LinePattern pr_Pattern;
154  float pr_LineWidth;
155 
156  static System::SharedPtr<Gridline> FromGridlines(const System::SharedPtr<Gridlines>& gridlines);
157 
158 };
159 
160 } // namespace Visualization
161 } // namespace Tasks
162 } // namespace Aspose
163 
164 
The horizontal or vertical line that appears in the project view.
Definition: Gridline.h:73
Aspose::Tasks::Visualization::GridlineType get_GridlineType() const
Gets the type of gridline (GridlineType).
LinePattern get_Pattern() const
Gets the LinePattern of a gridline.
void set_Color(System::Drawing::Color value)
Sets the Color of a gridline.
void set_GridlineType(Aspose::Tasks::Visualization::GridlineType value)
Sets the type of gridline (GridlineType).
void set_Pattern(LinePattern value)
Sets the LinePattern of a gridline.
System::Drawing::Color get_Color() const
Gets the Color of a gridline.
Gridline()
Initializes a new instance of the Gridline class.
bool Equals(System::SharedPtr< System::Object > obj) override
Returns a flag indicating whether this instance is equal to the specified object.
int32_t GetHashCode() const override
Returns a hash code value for the instance of the Gridline class.
Definition: Asn.h:13