Table of Contents

Class ExcelTextFont

Namespace
OfficeOpenXml.Style
Assembly
EPPlus.dll

Used by Rich-text and Paragraphs.

public class ExcelTextFont : XmlHelper
Inheritance
ExcelTextFont
Derived
Inherited Members

Properties

Bold

If the font is bold

public bool Bold { get; set; }

Property Value

bool

Color

Sets the default color of the text. This sets the Fill to a SolidFill with the specified color. Use the Fill property for more options

[Obsolete("Use the Fill property for more options")]
public Color Color { get; set; }

Property Value

Color

ComplexFont

The complex font typeface name

public string ComplexFont { get; set; }

Property Value

string

EastAsianFont

The East Asian typeface name

public string EastAsianFont { get; set; }

Property Value

string

Fill

A reference to the fill properties

public ExcelDrawingFill Fill { get; }

Property Value

ExcelDrawingFill

Italic

If the font is italic

public bool Italic { get; set; }

Property Value

bool

Kerning

Specifies the minimum font size at which character kerning occurs for this text run

public double Kerning { get; set; }

Property Value

double

LatinFont

The latin typeface name

public string LatinFont { get; set; }

Property Value

string

Size

Font size

public float Size { get; set; }

Property Value

float

Strike

Font strike out type

public eStrikeType Strike { get; set; }

Property Value

eStrikeType

UnderLine

The fonts underline style

public eUnderLineType UnderLine { get; set; }

Property Value

eUnderLineType

UnderLineColor

The fonts underline color

public Color UnderLineColor { get; set; }

Property Value

Color

Methods

CreateTopNode()

Creates the top nodes of the collection

protected void CreateTopNode()

SetFromFont(string, float, bool, bool, bool, bool)

Set the font style properties

public void SetFromFont(string name, float size, bool bold = false, bool italic = false, bool underline = false, bool strikeout = false)

Parameters

name string

Font family name

size float

Font size

bold bool
italic bool
underline bool
strikeout bool