Aspose.Tasks for C++
Main Page
Namespaces
Data Structures
PageMargins.h
1
#pragma once
2
//-----------------------------------------------------------------------
3
// <copyright file="PageMargins.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
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
Border;
19
}
// namespace Visualization
20
}
// namespace Tasks
21
}
// namespace Aspose
22
23
namespace
Aspose {
24
25
namespace
Tasks {
26
27
namespace
Visualization {
28
29
/// <summary>
30
/// Represents page margins for printing.
31
/// </summary>
32
class
ASPOSE_TASKS_SHARED_CLASS
PageMargins
:
public
System::Object
33
{
34
typedef
PageMargins
ThisType
;
35
typedef
System::Object BaseType;
36
37
typedef ::System::BaseTypesInfo<BaseType> ThisTypeBaseTypesInfo;
38
ASPOSE_TASKS_SHARED_RTTI_INFO_DECL();
39
40
public
:
41
42
/// <summary>
43
/// Gets the size of the top margin in inches or centimeters.
44
/// </summary>
45
ASPOSE_TASKS_SHARED_API
double
get_Top()
const
;
46
/// <summary>
47
/// Sets the size of the top margin in inches or centimeters.
48
/// </summary>
49
ASPOSE_TASKS_SHARED_API
void
set_Top(
double
value);
50
/// <summary>
51
/// Gets the size of the bottom margin in inches or centimeters.
52
/// </summary>
53
ASPOSE_TASKS_SHARED_API
double
get_Bottom()
const
;
54
/// <summary>
55
/// Sets the size of the bottom margin in inches or centimeters.
56
/// </summary>
57
ASPOSE_TASKS_SHARED_API
void
set_Bottom(
double
value);
58
/// <summary>
59
/// Gets the size of the left margin in inches or centimeters.
60
/// </summary>
61
ASPOSE_TASKS_SHARED_API
double
get_Left()
const
;
62
/// <summary>
63
/// Sets the size of the left margin in inches or centimeters.
64
/// </summary>
65
ASPOSE_TASKS_SHARED_API
void
set_Left(
double
value);
66
/// <summary>
67
/// Gets the size of the right margin in inches or centimeters.
68
/// </summary>
69
ASPOSE_TASKS_SHARED_API
double
get_Right()
const
;
70
/// <summary>
71
/// Sets the size of the right margin in inches or centimeters.
72
/// </summary>
73
ASPOSE_TASKS_SHARED_API
void
set_Right(
double
value);
74
/// <summary>
75
/// Gets a position where to print borders. Can be one of the values of the <see cref="Border"></see> enumeration.
76
/// </summary>
77
ASPOSE_TASKS_SHARED_API Border get_Borders()
const
;
78
/// <summary>
79
/// Sets a position where to print borders. Can be one of the values of the <see cref="Border"></see> enumeration.
80
/// </summary>
81
ASPOSE_TASKS_SHARED_API
void
set_Borders(Border value);
82
83
ASPOSE_TASKS_SHARED_API
PageMargins
();
84
85
protected
:
86
87
#ifdef ASPOSE_GET_SHARED_MEMBERS
88
ASPOSE_TASKS_SHARED_API
void
GetSharedMembers(System::Object::shared_members_type& result)
const override
;
89
#endif
90
91
92
private
:
93
94
double
pr_Top;
95
double
pr_Bottom;
96
double
pr_Left;
97
double
pr_Right;
98
Border pr_Borders;
99
100
};
101
102
}
// namespace Visualization
103
}
// namespace Tasks
104
}
// namespace Aspose
105
106
Aspose::Tasks::Visualization::PageMargins
Represents page margins for printing.
Definition:
PageMargins.h:32