Gets or sets the margins for the PDF pages.
Namespace: MindFusion.Diagramming.Export
Assembly: MindFusion.Diagramming.Export.Pdf
C# Copy Code |
---|
public Thickness Margins { get; set; } |
Visual Basic Copy Code |
---|
Public Property Margins As Thickness |
A Thickness instance that represents the margins in hundredths of an inch. The default is half-inch margins on all sides.
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); |