Class ExcelThemeFontCollection
A collection of fonts in a theme
Inherited Members
Namespace: OfficeOpenXml.Drawing.Theme
Assembly: EPPlus.dll
Syntax
public class ExcelThemeFontCollection : XmlHelper, IEnumerable<ExcelDrawingFontBase>, IEnumerable
Properties
Count
Number of items in the collection
Declaration
public int Count { get; }
Property Value
| Type | Description |
|---|---|
| int |
this[int]
The collection index
Declaration
public ExcelDrawingFontBase this[int index] { get; }
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index |
Property Value
| Type | Description |
|---|---|
| ExcelDrawingFontBase |
Methods
Add(string, string)
Adds a normal font to the collection
Declaration
public ExcelDrawingFont Add(string typeface, string script)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeface | The typeface, or name of the font |
| string | script | The script, or language, in which the typeface is supposed to be used |
Returns
| Type | Description |
|---|---|
| ExcelDrawingFont | The font |
AddSpecialFont(eFontType, string)
Adds a special font to the fonts collection
Declaration
public ExcelDrawingFontSpecial AddSpecialFont(eFontType type, string typeface)
Parameters
| Type | Name | Description |
|---|---|---|
| eFontType | type | The font type |
| string | typeface | The typeface, or name of the font |
Returns
| Type | Description |
|---|---|
| ExcelDrawingFontSpecial | The font |
GetEnumerator()
Gets an enumerator for the collection
Declaration
public IEnumerator<ExcelDrawingFontBase> GetEnumerator()
Returns
| Type | Description |
|---|---|
| IEnumerator<ExcelDrawingFontBase> | The enumerator |
Remove(ExcelDrawingFontBase)
Removes the item from the collection
Declaration
public void Remove(ExcelDrawingFontBase item)
Parameters
| Type | Name | Description |
|---|---|---|
| ExcelDrawingFontBase | item | The item to remove |
RemoveAt(int)
Removes the item from the collection
Declaration
public void RemoveAt(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| int | index | The index of the item to remove |
SetComplexFont(string)
Set the complex font of the collection
Declaration
public void SetComplexFont(string typeface)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeface | The typeface, or name of the font |
SetEastAsianFont(string)
Set the East Asian font of the collection
Declaration
public void SetEastAsianFont(string typeface)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeface | The typeface, or name of the font |
SetLatinFont(string)
Set the latin font of the collection
Declaration
public void SetLatinFont(string typeface)
Parameters
| Type | Name | Description |
|---|---|---|
| string | typeface | The typeface, or name of the font |