Back to Devexpress

WorksheetHeaderFooter.FromString(String) Method

officefileapi-devexpress-dot-spreadsheet-dot-worksheetheaderfooter-dot-fromstring-x28-system-dot-string-x29.md

latest1.7 KB
Original Source

WorksheetHeaderFooter.FromString(String) Method

Specifies the text for the header or footer.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
void FromString(
    string value
)
vb
Sub FromString(
    value As String
)

Parameters

NameTypeDescription
valueString

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:

See Also

WorksheetHeaderFooter Interface

WorksheetHeaderFooter Members

DevExpress.Spreadsheet Namespace