Table of Contents

Class ExcelThemeFontCollection

Namespace
OfficeOpenXml.Drawing.Theme
Assembly
EPPlus.dll

A collection of fonts in a theme

public class ExcelThemeFontCollection : XmlHelper, IEnumerable<ExcelDrawingFontBase>, IEnumerable
Inheritance
ExcelThemeFontCollection
Implements
Inherited Members

Properties

Count

Number of items in the collection

public int Count { get; }

Property Value

int

this[int]

The collection index

public ExcelDrawingFontBase this[int index] { get; }

Parameters

index int

The index

Property Value

ExcelDrawingFontBase

Methods

Add(string, string)

Adds a normal font to the collection

public ExcelDrawingFont Add(string typeface, string script)

Parameters

typeface string

The typeface, or name of the font

script string

The script, or language, in which the typeface is supposed to be used

Returns

ExcelDrawingFont

The font

AddSpecialFont(eFontType, string)

Adds a special font to the fonts collection

public ExcelDrawingFontSpecial AddSpecialFont(eFontType type, string typeface)

Parameters

type eFontType

The font type

typeface string

The typeface, or name of the font

Returns

ExcelDrawingFontSpecial

The font

GetEnumerator()

Gets an enumerator for the collection

public IEnumerator<ExcelDrawingFontBase> GetEnumerator()

Returns

IEnumerator<ExcelDrawingFontBase>

The enumerator

Remove(ExcelDrawingFontBase)

Removes the item from the collection

public void Remove(ExcelDrawingFontBase item)

Parameters

item ExcelDrawingFontBase

The item to remove

RemoveAt(int)

Removes the item from the collection

public void RemoveAt(int index)

Parameters

index int

The index of the item to remove

SetComplexFont(string)

Set the complex font of the collection

public void SetComplexFont(string typeface)

Parameters

typeface string

The typeface, or name of the font

SetEastAsianFont(string)

Set the East Asian font of the collection

public void SetEastAsianFont(string typeface)

Parameters

typeface string

The typeface, or name of the font

SetLatinFont(string)

Set the latin font of the collection

public void SetLatinFont(string typeface)

Parameters

typeface string

The typeface, or name of the font