Aspose.Tasks for C++
VisualObjectPlacement.h
1 #pragma once
2 //-----------------------------------------------------------------------
3 // <copyright file="VisualObjectPlacement.cs" company="Aspose Pty Ltd">
4 // Copyright (c) 2002-2024 Aspose Pty Ltd. All Rights Reserved.
5 // </copyright>
6 //-----------------------------------------------------------------------
7 
8 #include <system/date_time.h>
9 #include <system/array.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 namespace IO
20 {
21 namespace MSProject
22 {
23 class MppVisualObjectPlacementReader;
24 namespace Writers
25 {
26 class MppVisualObjectPlacementWriter;
27 } // namespace Writers
28 } // namespace MSProject
29 } // namespace IO
30 namespace Visualization
31 {
32 enum class FillPattern;
33 enum class HorizontalAlignment;
34 enum class VisualObjectType;
35 } // namespace Visualization
36 } // namespace Tasks
37 } // namespace Aspose
38 
39 namespace Aspose {
40 
41 namespace Tasks {
42 
43 namespace Visualization {
44 
45 /// <summary>
46 /// Represents placement and appearance of <see cref="OleObject"></see> in a view.
47 /// </summary>
48 class ASPOSE_TASKS_SHARED_CLASS VisualObjectPlacement final : public System::Object
49 {
51  typedef System::Object BaseType;
52 
53  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
54  ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
55 
56  friend class Aspose::Tasks::IO::MSProject::MppVisualObjectPlacementReader;
57  friend class Aspose::Tasks::IO::MSProject::Writers::MppVisualObjectPlacementWriter;
58 
59 public:
60 
61  /// <summary>
62  /// Gets Id of <see cref="OleObject"></see> object.
63  /// </summary>
64  ASPOSE_TASKS_SHARED_API int32_t get_OleObjectId() const;
65  /// <summary>
66  /// Sets Id of <see cref="OleObject"></see> object.
67  /// </summary>
68  ASPOSE_TASKS_SHARED_API void set_OleObjectId(int32_t value);
69  /// <summary>
70  /// Gets Id of task if 'Attach to task' options is selected, -1 otherwise.
71  /// </summary>
72  ASPOSE_TASKS_SHARED_API int32_t get_TaskId() const;
73  /// <summary>
74  /// Sets Id of task if 'Attach to task' options is selected, -1 otherwise.
75  /// </summary>
76  ASPOSE_TASKS_SHARED_API void set_TaskId(int32_t value);
77  /// <summary>
78  /// Gets displayed width of visual object.
79  /// </summary>
80  ASPOSE_TASKS_SHARED_API double get_Width() const;
81  /// <summary>
82  /// Sets displayed width of visual object.
83  /// </summary>
84  ASPOSE_TASKS_SHARED_API void set_Width(double value);
85  /// <summary>
86  /// Gets displayed height of visual object.
87  /// </summary>
88  ASPOSE_TASKS_SHARED_API double get_Height() const;
89  /// <summary>
90  /// Sets displayed height of visual object.
91  /// </summary>
92  ASPOSE_TASKS_SHARED_API void set_Height(double value);
93  /// <summary>
94  /// Gets vertical offset of visual object.
95  /// </summary>
96  ASPOSE_TASKS_SHARED_API double get_VerticalOffset() const;
97  /// <summary>
98  /// Sets vertical offset of visual object.
99  /// </summary>
100  ASPOSE_TASKS_SHARED_API void set_VerticalOffset(double value);
101  /// <summary>
102  /// Gets horizontal offset of visual object.
103  /// </summary>
104  ASPOSE_TASKS_SHARED_API double get_HorizontalOffset() const;
105  /// <summary>
106  /// Sets horizontal offset of visual object.
107  /// </summary>
108  ASPOSE_TASKS_SHARED_API void set_HorizontalOffset(double value);
109  /// <summary>
110  /// Gets date placement of visual object when 'Attach to timescale' options is selected.
111  /// </summary>
112  ASPOSE_TASKS_SHARED_API System::DateTime get_TimescaleDate() const;
113  /// <summary>
114  /// Sets date placement of visual object when 'Attach to timescale' options is selected.
115  /// </summary>
116  ASPOSE_TASKS_SHARED_API void set_TimescaleDate(System::DateTime value);
117  /// <summary>
118  /// Gets alignment of visual object relative to a task when 'Attach to task' options is selected.
119  /// </summary>
120  ASPOSE_TASKS_SHARED_API HorizontalAlignment get_AttachmentPoint() const;
121  /// <summary>
122  /// Sets alignment of visual object relative to a task when 'Attach to task' options is selected.
123  /// </summary>
124  ASPOSE_TASKS_SHARED_API void set_AttachmentPoint(HorizontalAlignment value);
125  /// <summary>
126  /// Gets border line color.
127  /// </summary>
128  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_BorderLineColor() const;
129  /// <summary>
130  /// Sets border line color.
131  /// </summary>
132  ASPOSE_TASKS_SHARED_API void set_BorderLineColor(System::Drawing::Color value);
133  /// <summary>
134  /// Gets border line thickness (allowed values are 0 - 5).
135  /// </summary>
136  ASPOSE_TASKS_SHARED_API uint8_t get_BorderLineThickness() const;
137  /// <summary>
138  /// Sets border line thickness (allowed values are 0 - 5).
139  /// </summary>
140  ASPOSE_TASKS_SHARED_API void set_BorderLineThickness(uint8_t value);
141  /// <summary>
142  /// Gets fill color.
143  /// </summary>
144  ASPOSE_TASKS_SHARED_API System::Drawing::Color get_FillColor() const;
145  /// <summary>
146  /// Sets fill color.
147  /// </summary>
148  ASPOSE_TASKS_SHARED_API void set_FillColor(System::Drawing::Color value);
149  /// <summary>
150  /// Gets fill pattern.
151  /// </summary>
152  ASPOSE_TASKS_SHARED_API Aspose::Tasks::Visualization::FillPattern get_FillPattern() const;
153  /// <summary>
154  /// Sets fill pattern.
155  /// </summary>
156  ASPOSE_TASKS_SHARED_API void set_FillPattern(Aspose::Tasks::Visualization::FillPattern value);
157 
158  /// <summary>
159  /// Initializes a new instance of the <see cref="VisualObjectPlacement"></see> class.
160  /// </summary>
161  ASPOSE_TASKS_SHARED_API VisualObjectPlacement();
162 
163 protected:
164 
165  ASPOSE_TASKS_SHARED_API const System::ArrayPtr<uint8_t>& get_RawMppRepresentation() const;
166  ASPOSE_TASKS_SHARED_API void set_RawMppRepresentation(const System::ArrayPtr<uint8_t>& value);
167  ASPOSE_TASKS_SHARED_API VisualObjectType get_Type() const;
168  ASPOSE_TASKS_SHARED_API void set_Type(VisualObjectType value);
169 
170  #ifdef ASPOSE_GET_SHARED_MEMBERS
171  ASPOSE_TASKS_SHARED_API void GetSharedMembers(System::Object::shared_members_type& result) const override;
172  #endif
173 
174 
175 private:
176 
177  int32_t pr_OleObjectId;
178  int32_t pr_TaskId;
179  double pr_Width;
180  double pr_Height;
181  double pr_VerticalOffset;
182  double pr_HorizontalOffset;
183  System::DateTime pr_TimescaleDate;
184  HorizontalAlignment pr_AttachmentPoint;
185  System::Drawing::Color pr_BorderLineColor;
186  uint8_t pr_BorderLineThickness;
187  System::Drawing::Color pr_FillColor;
188  Aspose::Tasks::Visualization::FillPattern pr_FillPattern;
189  System::ArrayPtr<uint8_t> pr_RawMppRepresentation;
190  VisualObjectType pr_Type;
191 
192 };
193 
194 } // namespace Visualization
195 } // namespace Tasks
196 } // namespace Aspose
197 
198 
Represents placement and appearance of OleObject in a view.
Definition: VisualObjectPlacement.h:49
void set_FillColor(System::Drawing::Color value)
Sets fill color.
System::DateTime get_TimescaleDate() const
Gets date placement of visual object when 'Attach to timescale' options is selected.
double get_Width() const
Gets displayed width of visual object.
void set_BorderLineThickness(uint8_t value)
Sets border line thickness (allowed values are 0 - 5).
void set_OleObjectId(int32_t value)
Sets Id of OleObject object.
VisualObjectPlacement()
Initializes a new instance of the VisualObjectPlacement class.
System::Drawing::Color get_FillColor() const
Gets fill color.
void set_BorderLineColor(System::Drawing::Color value)
Sets border line color.
double get_VerticalOffset() const
Gets vertical offset of visual object.
HorizontalAlignment get_AttachmentPoint() const
Gets alignment of visual object relative to a task when 'Attach to task' options is selected.
int32_t get_OleObjectId() const
Gets Id of OleObject object.
void set_HorizontalOffset(double value)
Sets horizontal offset of visual object.
void set_FillPattern(Aspose::Tasks::Visualization::FillPattern value)
Sets fill pattern.
double get_Height() const
Gets displayed height of visual object.
void set_Height(double value)
Sets displayed height of visual object.
void set_TimescaleDate(System::DateTime value)
Sets date placement of visual object when 'Attach to timescale' options is selected.
void set_Width(double value)
Sets displayed width of visual object.
double get_HorizontalOffset() const
Gets horizontal offset of visual object.
void set_TaskId(int32_t value)
Sets Id of task if 'Attach to task' options is selected, -1 otherwise.
void set_VerticalOffset(double value)
Sets vertical offset of visual object.
Aspose::Tasks::Visualization::FillPattern get_FillPattern() const
Gets fill pattern.
int32_t get_TaskId() const
Gets Id of task if 'Attach to task' options is selected, -1 otherwise.
void set_AttachmentPoint(HorizontalAlignment value)
Sets alignment of visual object relative to a task when 'Attach to task' options is selected.
uint8_t get_BorderLineThickness() const
Gets border line thickness (allowed values are 0 - 5).
System::Drawing::Color get_BorderLineColor() const
Gets border line color.
Definition: Asn.h:13