Gets or sets the margins for the PDF pages.
Namespace: MindFusion.Diagramming.Export
Assembly: MindFusion.Diagramming.Export.Pdf
SyntaxC#
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.
ExampleThe 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