MindFusion.Wpf Pack Programmer's Guide
PrintOptions.HeaderFormat Property
See Also
 





Gets or sets the format of page headers.

Namespace: MindFusion.Diagramming.Wpf
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public string HeaderFormat { get; set; }

Visual Basic  Copy Code

Public Property HeaderFormat As String

 Property Value

A string value specifying the name of the printed document. The default is "%D , Page %P".

 Remarks

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.

 Example

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()

 See Also

PrintOptions Members
PrintOptions Class
MindFusion.Diagramming.Wpf Namespace