Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+
Row

WorksheetHeaderFooter.FromString(String) Method

Specifies the text for the header or footer.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v19.1.Core.dll

Declaration

void FromString(
    string value
)

Parameters

Name Type Description
value String

A string that specifies left-aligned, centered and right-aligned text.

Remarks

Use the “&L” symbol pair to specify left-aligned text, the “&C” symbol pair to specify centered text and the “&R” symbol pair to specify right-aligned text. You can also insert special symbols and fields using the HeaderFooterCode class properties.

The string

“&LLEFT&CCENTER&RPage “ + HeaderFooterCode.PageNumber

results in the following printout:

HeaderFooterCodes

See Also