Skip to content

Class ExcelRichText

Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll

A richtext part

public class ExcelRichText

Inheritance

object ← 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

Charset

Characterset to use

public int Charset { get; set; }

Property Value

int

Color

Text color. Also see ColorSettings

public Color Color { get; set; }

Property Value

Color

ColorSettings

Color settings. Color

public ExcelRichTextColor ColorSettings { get; set; }

Property Value

ExcelRichTextColor

Family

Font family

public int Family { get; set; }

Property Value

int

FontName

Name of the font

public string FontName { get; set; }

Property Value

string

HasDefaultValue

public bool HasDefaultValue { get; }

Property Value

bool

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

True sets UnderLineType?text=UnderLineType to Single?text=Single

False sets UnderLineType?text=UnderLineType to Single?text=None

public bool UnderLine { get; set; }

Property Value

bool

UnderLineType

Underline type of text

public ExcelUnderLineType UnderLineType { get; set; }

Property Value

ExcelUnderLineType

VerticalAlign

Vertical Alignment

public ExcelVerticalAlignmentFont? VerticalAlign { get; set; }

Property Value

ExcelVerticalAlignmentFont?

Methods

GetUVerticalAlignmentFont(string)

Get the underline typ for rich text

public static ExcelVerticalAlignmentFont GetUVerticalAlignmentFont(string v)

Parameters

v string

Returns

ExcelVerticalAlignmentFont

returns excelunderline type

GetUnderlineType(string)

Get the underline typ for rich text

public static ExcelUnderLineType GetUnderlineType(string v)

Parameters

v string

Returns

ExcelUnderLineType

returns excelunderline type