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
this[int]
The collection index
public ExcelDrawingFontBase this[int index] { get; }
Parameters
index
intThe index
Property Value
Methods
Add(string, string)
Adds a normal font to the collection
public ExcelDrawingFont Add(string typeface, string script)
Parameters
typeface
stringThe typeface, or name of the font
script
stringThe 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
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
ExcelDrawingFontBaseThe item to remove
RemoveAt(int)
Removes the item from the collection
public void RemoveAt(int index)
Parameters
index
intThe index of the item to remove
SetComplexFont(string)
Set the complex font of the collection
public void SetComplexFont(string typeface)
Parameters
typeface
stringThe typeface, or name of the font
SetEastAsianFont(string)
Set the East Asian font of the collection
public void SetEastAsianFont(string typeface)
Parameters
typeface
stringThe typeface, or name of the font
SetLatinFont(string)
Set the latin font of the collection
public void SetLatinFont(string typeface)
Parameters
typeface
stringThe typeface, or name of the font