Show / Hide Table of Contents

Class ExcelThemeFontCollection

A collection of fonts in a theme

Inheritance
System.Object
XmlHelper
ExcelThemeFontCollection
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

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Back to top Generated by DocFX