Search
PdfExporter.Margins Property
See Also
 





Gets or sets the margins for the PDF pages.

Namespace: MindFusion.Diagramming.Export
Assembly: MindFusion.Diagramming.Export.Pdf

 Syntax

C#  Copy Code

public Thickness Margins { get; set; }

Visual Basic  Copy Code

Public Property Margins As Thickness

 Property Value

A Thickness instance 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
var pdfExporter = new PdfExporter();
pdfExporter.Margins = new Thickness(100, 100, 100, 100);
pdfExporter.Export(diagram, stream);

 See Also