Table of Contents

SpreadsheetInputOptions.RenderCenterHeader Property

Definition

Namespace
GleamTech.DocumentUltimate
Assembly
GleamTech.DocumentUltimate.dll

Gets or sets the center header to be rendered. See remarks in docs for possible script and format codes.

public string RenderCenterHeader { get; set; }

Property Value

string

Remarks

The following special script and format codes can be included as a part of the header and footer properties:

Script codeDescription
&DPrints the current date.
&TPrints the current time.
&FPrints the name of the document.
&APrints the name of the workbook tab (worksheet name).
&PPrints the page number.
&P+numberPrints the page number plus the specified number. E.g. &P+1
&P-numberPrints the page number minus the specified number.E.g. &P-1
&&Prints a single ampersand.
&NPrints the total number of pages in the document.
&ZPrints the file path.
Format codeDescription
&ETurns double-underline printing on or off.
&XTurns superscript printing on or off.
&YTurns subscript printing on or off.
&BTurns bold printing on or off.
&ITurns italic printing on or off.
&UTurns underline printing on or off.
&STurns strike-through printing on or off.
&"font-name"Prints the characters that follow in the specified font. Be sure to include the double quotation marks. E.g. &"Arial", &"Arial,Bold"
&nnPrints the characters that follow in the specified font size. Use a two-digit number to specify a size in points. E.g. &14
&colorPrints the characters in the specified color. User supplies a hexadecimal color value. E.g. &FF0000 (red)