Gets or sets the format of page headers.
Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf
C# Copy Code |
---|
public string HeaderFormat { get; set; } |
Visual Basic Copy Code |
---|
Public Property HeaderFormat As String |
A string value specifying the name of the printed document. The default is "%D , Page %P".
The header format string can contain fixed text and format specifiers. Currently, there are two format specifiers supported: %D is a placeholder for the document title; %P is a placholder for the page number.
To get page headers of the form "Page 21 of document MyChart.fc", use code like this:
C# Copy Code |
---|
diagram.PrintOptions.HeaderFormat = "Page %P of document %D"; diagram.PrintOptions.DocumentName = "MyChart.fc"; diagram.Print(); |
Visual Basic Copy Code |
---|
diagram.PrintOptions.HeaderFormat = "Page %P of document %D" diagram.PrintOptions.DocumentName = "MyChart.fc" diagram.Print() |
WpfDiagram Programmer's Guide | © 2024 MindFusion |