Aspose.Tasks for C++
PageLegend.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PageLegend.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 
10 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
11 
12 namespace Aspose
13 {
14 namespace Tasks
15 {
16 namespace Visualization
17 {
18 enum class Legend;
19 } // namespace Visualization
20 } // namespace Tasks
21 } // namespace Aspose
22 namespace System
23 {
24 namespace Drawing
25 {
26 class Image;
27 } // namespace Drawing
28 } // namespace System
29 
30 namespace Aspose {
31 
32 namespace Tasks {
33 
34 namespace Visualization {
35 
36 /// <summary>
37 /// Represents a page legend which is used for project printing.
38 /// </summary>
39 class ASPOSE_TASKS_SHARED_CLASS PageLegend : public System::Object
40 {
41  typedef PageLegend ThisType;
42  typedef System::Object BaseType;
43 
44  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
45  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
46 
47 public:
48 
49  /// <summary>
50  /// Gets the left aligned text to display in the page legend.
51  /// </summary>
52  ASPOSE_TASKS_SHARED_API System::String get_LeftText() const;
53  /// <summary>
54  /// Sets the left aligned text to display in the page legend.
55  /// </summary>
56  ASPOSE_TASKS_SHARED_API void set_LeftText(const System::String& value);
57  /// <summary>
58  /// Gets the centered text to display in the page legend.
59  /// </summary>
60  ASPOSE_TASKS_SHARED_API System::String get_CenteredText() const;
61  /// <summary>
62  /// Sets the centered text to display in the page legend.
63  /// </summary>
64  ASPOSE_TASKS_SHARED_API void set_CenteredText(const System::String& value);
65  /// <summary>
66  /// Gets the right aligned text to display in the page legend.
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API System::String get_RightText() const;
69  /// <summary>
70  /// Sets the right aligned text to display in the page legend.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API void set_RightText(const System::String& value);
73  /// <summary>
74  /// Gets the pages on which the legend appears. Can be one of the values of the <see cref="Legend"></see> enumeration.
75  /// </summary>
76  ASPOSE_TASKS_SHARED_API Legend get_LegendOn() const;
77  /// <summary>
78  /// Sets the pages on which the legend appears. Can be one of the values of the <see cref="Legend"></see> enumeration.
79  /// </summary>
80  ASPOSE_TASKS_SHARED_API void set_LegendOn(Legend value);
81  /// <summary>
82  /// Gets the width of the legend.
83  /// </summary>
84  ASPOSE_TASKS_SHARED_API double get_Width() const;
85  /// <summary>
86  /// Sets the width of the legend.
87  /// </summary>
88  ASPOSE_TASKS_SHARED_API void set_Width(double value);
89  /// <summary>
90  /// Gets the left aligned image to be displayed in the page legend.
91  /// </summary>
92  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Drawing::Image>& get_LeftImage() const;
93  /// <summary>
94  /// Sets the left aligned image to be displayed in the page legend.
95  /// </summary>
96  ASPOSE_TASKS_SHARED_API void set_LeftImage(const System::SharedPtr<System::Drawing::Image>& value);
97  /// <summary>
98  /// Gets the centered image to be displayed in the page legend.
99  /// </summary>
100  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Drawing::Image>& get_CenteredImage() const;
101  /// <summary>
102  /// Sets the centered image to be displayed in the page legend.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API void set_CenteredImage(const System::SharedPtr<System::Drawing::Image>& value);
105  /// <summary>
106  /// Gets the right aligned image to be displayed in the page legend.
107  /// </summary>
108  ASPOSE_TASKS_SHARED_API const System::SharedPtr<System::Drawing::Image>& get_RightImage() const;
109  /// <summary>
110  /// Sets the right aligned image to be displayed in the page legend.
111  /// </summary>
112  ASPOSE_TASKS_SHARED_API void set_RightImage(const System::SharedPtr<System::Drawing::Image>& value);
113 
114  ASPOSE_TASKS_SHARED_API PageLegend();
115 
116 protected:
117 
118  #ifdef ASPOSE_GET_SHARED_MEMBERS
119  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
120  #endif
121 
122 
123 private:
124 
125  System::String pr_LeftText;
126  System::String pr_CenteredText;
127  System::String pr_RightText;
128  Legend pr_LegendOn;
129  double pr_Width;
130  System::SharedPtr<System::Drawing::Image> pr_LeftImage;
131  System::SharedPtr<System::Drawing::Image> pr_CenteredImage;
132  System::SharedPtr<System::Drawing::Image> pr_RightImage;
133 
134 };
135 
136 } // namespace Visualization
137 } // namespace Tasks
138 } // namespace Aspose
139 
140 
Represents a page legend which is used for project printing.
Definition: PageLegend.h:40
void set_LeftImage(const System::SharedPtr< System::Drawing::Image > &value)
Sets the left aligned image to be displayed in the page legend.
const System::SharedPtr< System::Drawing::Image > & get_LeftImage() const
Gets the left aligned image to be displayed in the page legend.
void set_LegendOn(Legend value)
Sets the pages on which the legend appears. Can be one of the values of the Legend enumeration.
System::String get_CenteredText() const
Gets the centered text to display in the page legend.
void set_RightText(const System::String &value)
Sets the right aligned text to display in the page legend.
Legend get_LegendOn() const
Gets the pages on which the legend appears. Can be one of the values of the Legend enumeration.
double get_Width() const
Gets the width of the legend.
System::String get_LeftText() const
Gets the left aligned text to display in the page legend.
void set_CenteredImage(const System::SharedPtr< System::Drawing::Image > &value)
Sets the centered image to be displayed in the page legend.
void set_LeftText(const System::String &value)
Sets the left aligned text to display in the page legend.
System::String get_RightText() const
Gets the right aligned text to display in the page legend.
const System::SharedPtr< System::Drawing::Image > & get_CenteredImage() const
Gets the centered image to be displayed in the page legend.
void set_Width(double value)
Sets the width of the legend.
void set_CenteredText(const System::String &value)
Sets the centered text to display in the page legend.
const System::SharedPtr< System::Drawing::Image > & get_RightImage() const
Gets the right aligned image to be displayed in the page legend.
void set_RightImage(const System::SharedPtr< System::Drawing::Image > &value)
Sets the right aligned image to be displayed in the page legend.
Definition: Asn.h:13