Aspose.Tasks for C++
PageLegend.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="PageLegend.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2025 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include "aspose.tasks.cpp/Visualization/HeaderFooterInfo.h"
9 #include "aspose.tasks.cpp/aspose_tasks_api_defs.h"
10 
11 namespace Aspose
12 {
13 namespace Tasks
14 {
15 namespace Visualization
16 {
17 enum class Legend;
18 } // namespace Visualization
19 } // namespace Tasks
20 } // namespace Aspose
21 
22 namespace Aspose {
23 
24 namespace Tasks {
25 
26 namespace Visualization {
27 
28 /// <summary>
29 /// Represents a page legend which is used for project printing.
30 /// </summary>
31 class ASPOSE_TASKS_SHARED_CLASS PageLegend : public Aspose::Tasks::Visualization::HeaderFooterInfo
32 {
33  typedef PageLegend ThisType;
35 
36  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
37  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
38 
39 public:
40 
41  /// <summary>
42  /// Gets the pages on which the legend appears. Can be one of the values of the <see cref="Legend"></see> enumeration.
43  /// </summary>
44  ASPOSE_TASKS_SHARED_API Legend get_LegendOn() const;
45  /// <summary>
46  /// Sets the pages on which the legend appears. Can be one of the values of the <see cref="Legend"></see> enumeration.
47  /// </summary>
48  ASPOSE_TASKS_SHARED_API void set_LegendOn(Legend value);
49  /// <summary>
50  /// Gets the width of the left part (containing project's name and date by default) of the legend in centimeters.
51  /// </summary>
52  /// <exception cref="ArgumentOutOfRangeException">When attempting to set to a value less than 0.</exception>
53  ASPOSE_TASKS_SHARED_API double get_Width() const;
54  /// <summary>
55  /// Sets the width of the left part (containing project's name and date by default) of the legend in centimeters.
56  /// </summary>
57  /// <exception cref="ArgumentOutOfRangeException">When attempting to set to a value less than 0.</exception>
58  ASPOSE_TASKS_SHARED_API void set_Width(double value);
59 
60  ASPOSE_TASKS_SHARED_API PageLegend();
61 
62 protected:
63 
64  #ifdef ASPOSE_GET_SHARED_MEMBERS
65  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
66  #endif
67 
68 
69 private:
70 
71  double width;
72  Legend pr_LegendOn;
73 
74 };
75 
76 } // namespace Visualization
77 } // namespace Tasks
78 } // namespace Aspose
79 
80 
Represents a page legend which is used for project printing.
Definition: PageLegend.h:31
Definition: Asn.h:12