Setting Margins
Setting Margins
Aspose.Diagram provides a class, Page, that represents a Microsoft Visio file. The Diagram class contains a Pages collection that allows access to each page in the Visio file. A page is represented by the Page class.
The PageSheet class provides the PrintProps property that is used to set the page setup options of the page. In fact, this PrintProps property is an object of the PageSheet class used to set different page layout options for a printed page. The PrintProps class provides various properties used to set page setup options. Some of these properties are discussed below.
Page Margins
Set page margins (PageTopMargin, PageBottomMargin, PageLeftMargin, PageRightMargin) using PrintProps class members. A few of the methods are listed below which are used to specify page margins: