Class ExcelThemeFontCollection
A collection of fonts in a theme
Implements
System.Collections.Generic.IEnumerable<ExcelDrawingFontBase>
    System.Collections.IEnumerable
  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.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 | 
|---|---|
| System.Int32 | 
Item[Int32]
The collection index
Declaration
public ExcelDrawingFontBase this[int index] { get; }
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | 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 | 
|---|---|---|
| System.String | typeface | The typeface, or name of the font  | 
      
| System.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  | 
      
| System.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 | 
|---|---|
| System.Collections.Generic.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(Int32)
Removes the item from the collection
Declaration
public void RemoveAt(int index)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.Int32 | 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 | 
|---|---|---|
| System.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 | 
|---|---|---|
| System.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 | 
|---|---|---|
| System.String | typeface | The typeface, or name of the font  | 
      
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
  Returns
| Type | Description | 
|---|---|
| System.Collections.IEnumerator | 
Implements
      System.Collections.Generic.IEnumerable<T>
  
  
      System.Collections.IEnumerable