Back to Devexpress

HeaderFooterCode.Font(String, SpreadsheetFontStyle) Method

officefileapi-devexpress-dot-spreadsheet-dot-headerfootercode-dot-font-x28-system-dot-string-devexpress-dot-spreadsheet-dot-spreadsheetfontstyle-x29.md

latest1.7 KB
Original Source

HeaderFooterCode.Font(String, SpreadsheetFontStyle) Method

Prints the characters using the specified font.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public static string Font(
    string fontName,
    SpreadsheetFontStyle fontStyle
)
vb
Public Shared Function Font(
    fontName As String,
    fontStyle As SpreadsheetFontStyle
) As String

Parameters

NameTypeDescription
fontNameString

A string that is the name of the font.

| | fontStyle | SpreadsheetFontStyle |

A FontStyle enumeration that specifies the style of the text.

|

Returns

TypeDescription
String

A string that can be assigned as the header or footer content.

|

See Also

HeaderFooterCode Class

HeaderFooterCode Members

DevExpress.Spreadsheet Namespace