Show / Hide Table of Contents

Class ExcelRichText

A richtext part

Inheritance
System.Object
ExcelRichText
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: OfficeOpenXml.Style
Assembly: EPPlus.dll
Syntax
public class ExcelRichText

Properties

Bold

Bold text

Declaration
public bool Bold { get; set; }
Property Value
Type Description
System.Boolean

Charset

Characterset to use

Declaration
public int Charset { get; set; }
Property Value
Type Description
System.Int32

Color

Text color. Also see ColorSettings

Declaration
public Color Color { get; set; }
Property Value
Type Description
System.Drawing.Color

ColorSettings

Color settings. Color

Declaration
public ExcelRichTextColor ColorSettings { get; set; }
Property Value
Type Description
ExcelRichTextColor

Family

Font family

Declaration
public int Family { get; set; }
Property Value
Type Description
System.Int32

FontName

Name of the font

Declaration
public string FontName { get; set; }
Property Value
Type Description
System.String

HasDefaultValue

Has default value

Declaration
public bool HasDefaultValue { get; }
Property Value
Type Description
System.Boolean

HtmlText

Returns the rich text item as a html string.

Declaration
public string HtmlText { get; }
Property Value
Type Description
System.String

Italic

Italic text

Declaration
public bool Italic { get; set; }
Property Value
Type Description
System.Boolean

PreserveSpace

Preserves whitespace. Default true

Declaration
public bool PreserveSpace { get; set; }
Property Value
Type Description
System.Boolean

Size

Font size

Declaration
public float Size { get; set; }
Property Value
Type Description
System.Single

Strike

Strike-out text

Declaration
public bool Strike { get; set; }
Property Value
Type Description
System.Boolean

Text

The text

Declaration
public string Text { get; set; }
Property Value
Type Description
System.String

UnderLine

Underlined text

True sets UnderLineType to Single

False sets UnderLineType to None

Declaration
public bool UnderLine { get; set; }
Property Value
Type Description
System.Boolean

UnderLineType

Underline type of text

Declaration
public ExcelUnderLineType UnderLineType { get; set; }
Property Value
Type Description
ExcelUnderLineType

VerticalAlign

Vertical Alignment

Declaration
public ExcelVerticalAlignmentFont? VerticalAlign { get; set; }
Property Value
Type Description
System.Nullable<ExcelVerticalAlignmentFont>

Methods

GetUnderlineType(String)

Get the underline typ for rich text

Declaration
public static ExcelUnderLineType GetUnderlineType(string v)
Parameters
Type Name Description
System.String v
Returns
Type Description
ExcelUnderLineType

returns excelunderline type

GetUVerticalAlignmentFont(String)

Get the underline typ for rich text

Declaration
public static ExcelVerticalAlignmentFont GetUVerticalAlignmentFont(string v)
Parameters
Type Name Description
System.String v
Returns
Type Description
ExcelVerticalAlignmentFont

returns excelunderline type

In This Article
Back to top Generated by DocFX