MarginInfo.h
1 #pragma once
2 // Copyright (c) 2001-2024 Aspose Pty Ltd. All Rights Reserved.
3 
4 // C# preprocessor directive: #if !NETCORE
5 
6 
7 // C# preprocessor directive: #endif
8 
9 
10 #include <system/icloneable.h>
11 
12 #include "Aspose.PDF.Cpp/aspose_pdf_api_defs.h"
13 
14 namespace Aspose
15 {
16 namespace Pdf
17 {
18 class BaseParagraph;
19 class Cell;
20 class HeaderFooter;
21 class PageInfo;
22 class Row;
23 class Table;
24 } // namespace Pdf
25 } // namespace Aspose
26 namespace System
27 {
28 namespace Xml
29 {
30 class XmlReader;
31 class XmlTextWriter;
32 } // namespace Xml
33 } // namespace System
34 
35 namespace Aspose {
36 
37 namespace Pdf {
38 
42 class ASPOSE_PDF_SHARED_CLASS MarginInfo final : public System::ICloneable
43 {
44  typedef MarginInfo ThisType;
46 
47  typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
48  ASPOSE_PDF_SHARED_RTTI_INFO_DECL();
49 
52  friend class Aspose::Pdf::PageInfo;
53  friend class Aspose::Pdf::Cell;
54  friend class Aspose::Pdf::Row;
55  friend class Aspose::Pdf::Table;
56 
57 public:
58 
62  ASPOSE_PDF_SHARED_API double get_Left() const;
66  ASPOSE_PDF_SHARED_API void set_Left(double value);
70  ASPOSE_PDF_SHARED_API double get_Right() const;
74  ASPOSE_PDF_SHARED_API void set_Right(double value);
78  ASPOSE_PDF_SHARED_API double get_Top() const;
82  ASPOSE_PDF_SHARED_API void set_Top(double value);
86  ASPOSE_PDF_SHARED_API double get_Bottom() const;
90  ASPOSE_PDF_SHARED_API void set_Bottom(double value);
91 
95  ASPOSE_PDF_SHARED_API MarginInfo();
103  ASPOSE_PDF_SHARED_API MarginInfo(double left, double bottom, double right, double top);
104 
109  ASPOSE_PDF_SHARED_API System::SharedPtr<System::Object> Clone() override;
110 
111 protected:
112 
113  bool get_IsDefault();
114  bool get_HasNonZeroElements();
115 
117  void SerializePageDefault(System::SharedPtr<System::Xml::XmlTextWriter> writer);
119 
120 private:
121 
122  double leftMargin, rightMargin, topMargin, bottomMargin;
123 
124 };
125 
126 } // namespace Pdf
127 } // namespace Aspose
128 
129 
ASPOSE_PDF_SHARED_API void Serialize(System::SharedPtr< System::Xml::XmlTextWriter > writer) override
Definition: Artifact.h:67
Represents the page information.
Definition: PageInfo.h:39
ASPOSE_PDF_SHARED_API void set_Top(float value)
Sets the table top coordinate.
ASPOSE_PDF_SHARED_API float get_Left() const
Gets the table left coordinate.
ASPOSE_PDF_SHARED_API float get_Top() const
Gets the table top coordinate.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: fwd.h:22
means saving in XML format
ASPOSE_PDF_SHARED_API void set_Left(float value)
Sets the table left coordinate.
Definition: AFRelationship.h:4
This class represents a margin for different objects.
Definition: MarginInfo.h:42
Defies a method that enables object cloning - creating a copy of an object. Objects of this class sho...
Definition: icloneable.h:15
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Object > Clone() override
Clone the table.
Represents a row of the table.
Definition: Row.h:53
Represents a cell of the table&#39;s row.
Definition: Cell.h:65
ASPOSE_PDF_SHARED_API void Deserialize(System::SharedPtr< System::Xml::XmlReader > reader) override
means saving without change of format, i.e. as PDF use it please instead of &#39;SaveFormat.None&#39;, that is obsolete one
Represents a table that can be added to the page.
Definition: Table.h:86
Represents a abstract base object can be added to the page(doc.Paragraphs.Add()). ...
Definition: BaseParagraph.h:66
Whole PDF file will be submitted.