Skip to content

Class ExcelRichText

Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll

A richtext part

public class ExcelRichText : XmlHelper

Inheritance

object ← XmlHelper ← ExcelRichText

Inherited Members

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

Properties

Bold

Bold text

public bool Bold { get; set; }

Property Value

bool

Color

Text color. Also see ColorSettings

public Color Color { get; set; }

Property Value

Color

ColorSettings

Color settings. Color

public ExcelRichTextColor ColorSettings { get; }

Property Value

ExcelRichTextColor

FontName

Name of the font

public string FontName { get; set; }

Property Value

string

HtmlText

Returns the rich text item as a html string.

public string HtmlText { get; }

Property Value

string

Italic

Italic text

public bool Italic { get; set; }

Property Value

bool

PreserveSpace

Preserves whitespace. Default true

public bool PreserveSpace { get; set; }

Property Value

bool

Size

Font size

public float Size { get; set; }

Property Value

float

Strike

Strike-out text

public bool Strike { get; set; }

Property Value

bool

Text

The text

public string Text { get; set; }

Property Value

string

UnderLine

Underlined text

public bool UnderLine { get; set; }

Property Value

bool

VerticalAlign

Vertical Alignment

public ExcelVerticalAlignmentFont VerticalAlign { get; set; }

Property Value

ExcelVerticalAlignmentFont

_collection

A referens to the richtext collection

public ExcelRichTextCollection _collection { get; set; }

Property Value

ExcelRichTextCollection