Search
PrintOptions.HeaderFormat Property
See Also
 





Specifies the format of page headers.

Namespace: MindFusion.Diagramming.WinForms
Assembly: MindFusion.Diagramming.WinForms

 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 three format specifiers supported:

  • %D is a placeholder for the document title specified in DocumentName;
  • %P is a placeholder for the current page number;
  • %T is a placeholder for the Title of the current DiagramPage;

 Example

To get page headers of the form "Page 21 of document MyChart.fc", use code like this:

C#  Copy Code

diagramView.PrintOptions.HeaderFormat = "Page %P of document %D";
diagramView.PrintOptions.DocumentName = "MyChart.fc";
diagramView.Print();

Visual Basic  Copy Code

diagramView.PrintOptions.HeaderFormat = "Page %P of document %D"
diagramView.PrintOptions.DocumentName = "MyChart.fc"
diagramView.Print()

 See Also