[]
Contains the theme fonts in different languages.
This interface represents a language-based collection of theme fonts in a workbook theme. It is typically obtained from Major or Minor and lets you access the theme font for a specific FontLanguageIndex, such as Latin, EastAsian, or ComplexScript.
public interface IThemeFonts
Public Interface IThemeFonts
ITheme theme = new Theme("CustomTheme", Themes.Berlin);
workbook.Theme = theme;
IThemeFonts themeFonts = theme.ThemeFontScheme.Major;
IThemeFont latinFont = themeFonts[FontLanguageIndex.Latin];
latinFont.Name = "Aptos";
IThemeFont eastAsianFont = themeFonts[FontLanguageIndex.EastAsian];
int count = themeFonts.Count;
| Name | Description |
|---|---|
| Count | Gets the number of theme font entries in this collection. Use this property to determine how many language-specific theme font entries are available in the current IThemeFonts collection. |
| this[FontLanguageIndex] | Gets the theme font for the specified FontLanguageIndex. Use this indexer to access the theme font for a specific language category in the current theme font collection, such as Latin, EastAsian, or ComplexScript. This collection is typically obtained from Major or Minor. |