ASP.NET Pack Programmer's Guide
PdfExporter.Margins Property
See Also
 





Gets or sets the margins for the PDF pages.

Namespace: MindFusion.Diagramming.Export
Package: MindFusion.Diagramming.Export.Pdf

 Syntax

C#  Copy Code

public Margins Margins { get; set; }

Visual Basic  Copy Code

Public Property Margins As Margins

 Property Value

An instance of the .NET Margins class that represents the margins in hundredths of an inch. The default is half-inch margins on all sides.

 Example

The following C# code creates a PDF file with one-inch page margins:

C#  Copy Code

PdfExporter exp = new PdfExporter();
exp.Margins = new System.Drawing.Printing.Margins(100, 100, 100, 100);
exp.Export(diagram, @"D:\diagram.pdf");

Visual Basic  Copy Code

Dim exp As New PdfExporter
exp.Margins = New System.Drawing.Printing.Margins(100, 100, 100, 100)
exp.Export(diagram, "D:\diagram.pdf")

 See Also

PdfExporter Members
PdfExporter Class
MindFusion.Diagramming.Export Namespace
PageSize Property