Method EscapeHeaderFooterText
- Namespace
- DocWright.Spreadsheet
- Assembly
- DocWright.Spreadsheet.dll
EscapeHeaderFooterText(string)
Returns text for a header or footer with every & doubled, so that Excel shows it as written rather
than reading it as a code (&P is the page number; && is an ampersand).
public static string EscapeHeaderFooterText(string text)
Parameters
textstringThe text.
Returns
- string
The text, its ampersands escaped.