PageMargins Class |
Namespace: Aspose.Tasks.Visualization
The PageMargins type exposes the following members.
Name | Description | |
---|---|---|
![]() | PageMargins | Initializes a new instance of the PageMargins class |
Name | Description | |
---|---|---|
![]() ![]() | Borders |
Gets or sets a position where to print borders. Can be one of the values of the Border enumeration.
|
![]() ![]() | Bottom |
Gets or sets the size of the bottom margin in inches or centimeters.
|
![]() ![]() | Left |
Gets or sets the size of the left margin in inches or centimeters.
|
![]() ![]() | Right |
Gets or sets the size of the right margin in inches or centimeters.
|
![]() ![]() | Top |
Gets or sets the size of the top margin in inches or centimeters.
|
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
var project = new Project(DataDir + "Project2.mpp"); // lets modify the default view var margins = project.DefaultView.PageInfo.Margins; // lets modify margins margins.Left = 10d; margins.Top = 10d; margins.Right = 10d; margins.Bottom = 10d; margins.Borders = Border.OutsidePages; project.Save(OutDir + "WorkWithPageMargins_out.mpp", SaveFileFormat.MPP);