Skip to main content
Row

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WorksheetHeaderFooter.FromString(String) Method

Specifies the text for the header or footer.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.2.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

#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