Skip to content

Class ExcelHeaderFooterTextItem

Namespace: OfficeOpenXml.Style.HeaderFooterTextFormat
Assembly: EPPlus.dll

An ExcelHeaderFooterTextItem object used for the ExcelHeaderFooterTextCollection

public class ExcelHeaderFooterTextItem

Inheritance

object ← ExcelHeaderFooterTextItem

Inherited Members

object.Equals(object?, object?)
object.Equals(object?)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object?, object?)
object.ToString()

Constructors

ExcelHeaderFooterTextItem()

Creates an empty ExcelHeaderFooterTextItem object.

public ExcelHeaderFooterTextItem()

ExcelHeaderFooterTextItem(string)

Creates an ExcelHeaderFooterTextItem object with a text.

public ExcelHeaderFooterTextItem(string text)

Parameters

text string

The objects text

Fields

FormatCode

The text format code. Used for inserting dates, page numbers and more.

public ExcelHeaderFooterFormattingCodes FormatCode

Field Value

ExcelHeaderFooterFormattingCodes

PageNumberSuffix

Suffix for page number.

public string PageNumberSuffix

Field Value

string

Properties

Bold

If text is bold.

public bool Bold { get; set; }

Property Value

bool

Color

Color of text.

public Color Color { get; set; }

Property Value

Color

DoubleUnderline

If text is double underlined.

public bool DoubleUnderline { get; set; }

Property Value

bool

FontName

The text font name.

public string FontName { get; set; }

Property Value

string

FontSize

The text size.

public int? FontSize { get; set; }

Property Value

int?

Italic

If text is italic.

public bool Italic { get; set; }

Property Value

bool

Outline

If text is outlined.

public bool Outline { get; set; }

Property Value

bool

Shadow

If text has a shadow.

public bool Shadow { get; set; }

Property Value

bool

Striketrough

If text has a strikethrough.

public bool Striketrough { get; set; }

Property Value

bool

SubScript

If text is subscript.

public bool SubScript { get; set; }

Property Value

bool

SuperScript

If text is superscript.

public bool SuperScript { get; set; }

Property Value

bool

Text

The text.

public string Text { get; set; }

Property Value

string

Theme

The text theme.

public eThemeSchemeColor? Theme { get; set; }

Property Value

eThemeSchemeColor?

Tint

Tint of the text theme.

public double? Tint { get; set; }

Property Value

double?

Underline

If text is underlined.

public bool Underline { get; set; }

Property Value

bool

Methods

GetThemeOrColorAsString()

Get the theme or color as a string in format &KTTSNNN for theme and &KRRGGBB for color.

public string GetThemeOrColorAsString()

Returns

string