Back to Devexpress

HeaderFooterCode Members

officefileapi-devexpress-dot-spreadsheet-dot-headerfootercode-dot-underscore-members.md

latest6.6 KB
Original Source

HeaderFooterCode Members

Contains format codes used in headers and footers.

Fields

NameDescription
AmpersandPrints a single ampersand.
BoldTurns bold on and off for the text that follows the code.
CenterSectionCenters the characters that follow.
DatePrints the current date.
DoubleUnderlineTurns double underline on and off for the characters that follow.
ItalicTurns italic on and off for the characters that follow.
LeftSectionLeft aligns the characters that follow.
PageNumberPrints the current page number.
PageTotalPrints the total number of pages in the document.
PictureInserts a picture. Use the WorksheetHeaderFooter.AddPicture method to load the picture you want to insert.
RightSectionRight aligns the characters that follow.
StrikethroughTurns strikethrough on or off for the characters that follow.
SubscriptTurns subscript on or off for the characters that follow.
SuperscriptTurns superscript on or off for the characters that follow.
TimePrints the current time.
UnderlineTurns underline on or off for the characters that follow.
WorkbookFileNamePrints the name of the workbook.
WorkbookFilePathPrints the file path of the workbook.
WorksheetNamePrints the name of the worksheet.

Methods

NameDescription
BodyFont(SpreadsheetFontStyle) staticReturns the format code that prints the characters by using the minor theme font and the specified font style.
CustomPageNumber(Int32) staticReturns the header and footer code that prints the page number plus/minus the specified number.
CustomPageTotal(Int32) staticReturns the header and footer code that prints the total number of pages plus/minus the specified number.
Equals(Object, Object) staticDetermines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object)Determines whether the specified object is equal to the current object. Inherited from Object.
Font(String, SpreadsheetFontStyle) staticPrints the characters using the specified font.
FontColor(Color) staticObtains the formatting code that sets the text font color.
FontColor(Int32, Int32) staticObtains the formatting code that sets the text font color.
FontSize(Int32) staticObtains the format code that sets the text font size.
GetHashCode()Serves as the default hash function. Inherited from Object.
GetType()Gets the Type of the current instance. Inherited from Object.
HeadingsFont(SpreadsheetFontStyle) staticReturns the format code that prints the characters by using the major theme font and the specified font style.
MemberwiseClone() protectedCreates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) staticDetermines whether the specified Object instances are the same instance. Inherited from Object.
ToString()Returns a string that represents the current object. Inherited from Object.

See Also

HeaderFooterCode Class

DevExpress.Spreadsheet Namespace