[]
        
(Showing Draft Content)

FontLanguageIndex

Enum Class FontLanguageIndex

java.lang.Object
java.lang.Enum<FontLanguageIndex>
com.grapecity.documents.excel.FontLanguageIndex
All Implemented Interfaces:
Serializable, Comparable<FontLanguageIndex>, Constable

public enum FontLanguageIndex extends Enum<FontLanguageIndex>
Specifies the font language type.

Use this enum to select the Latin, East Asian, or complex-script theme font from an IThemeFonts collection. It is commonly used with IThemeFonts.get(FontLanguageIndex) and returned by IThemeFont.getFontLanguageIndex().


 Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
 workbook.setTheme(theme);
 IThemeFont latinFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.Latin);
 latinFont.setName("Aptos");
 IThemeFont eastAsianFont = workbook.getTheme().getThemeFontScheme().getMajor().get(FontLanguageIndex.EastAsian);
 eastAsianFont.setName("MS Gothic");
 
  • Enum Constant Details

    • Latin

      public static final FontLanguageIndex Latin
      Specifies the Latin language.
    • EastAsian

      public static final FontLanguageIndex EastAsian
      Specifies the EastAsian language.
    • ComplexScript

      public static final FontLanguageIndex ComplexScript
      Specifies the complex script.
  • Method Details

    • values

      public static FontLanguageIndex[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static FontLanguageIndex valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null