com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IFontFallBackRulesCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      void add(IFontFallBackRule sourceRule)
      Add a new FallBack rule to the end of the collection.
      IFontFallBackRule get_Item(int index)
      Gets the rule at the specified index.
      void remove(IFontFallBackRule targetRule)
      Removes the first occurrence of a specific FallBack rule from the collection.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface com.aspose.ms.System.Collections.ICollection

        copyTo, getSyncRoot, isSynchronized, size
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • get_Item

        IFontFallBackRule get_Item(int index)

        Gets the rule at the specified index.

         Presentation pres = new Presentation();
         try
         {
             //Getting of empty or preinitialized rules collection from FontsManager
             IFontFallBackRulesCollection rulesList = pres.getFontsManager().getFontFallBackRulesCollection();
             //Adding of several rules to collection
             rulesList.add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
             rulesList.add(new FontFallBackRule(0x3040, 0x309F, "MS Mincho"));
             //Retrieving of object of the first rule in collection
             IFontFallBackRule firstRule = rulesList.get_Item(0);
         }
         finally {
             if (pres != null) pres.dispose();
         }
         
        Read-only IFontFallBackRule.

      • add

        void add(IFontFallBackRule sourceRule)

        Add a new FallBack rule to the end of the collection.

         Presentation pres = new Presentation();
         try
         {
             //Getting of empty or preinitialized rules collection from FontsManager
             IFontFallBackRulesCollection rulesList = pres.getFontsManager().getFontFallBackRulesCollection();
             //Adding of new rule to collection
             rulesList.add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
         }
         finally {
             if (pres != null) pres.dispose();
         }
         

        Parameters:
        sourceRule - Specified rule for adding
      • remove

        void remove(IFontFallBackRule targetRule)

        Removes the first occurrence of a specific FallBack rule from the collection.

         Presentation pres = new Presentation();
         try
         {
             //Getting of empty or preinitialized rules collection from FontsManager
             IFontFallBackRulesCollection rulesList = pres.getFontsManager().getFontFallBackRulesCollection();
             //Adding of several rules to collection
             rulesList.add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
             rulesList.add(new FontFallBackRule(0x3040, 0x309F, "MS Mincho"));
             //Retrieving of object of the first rule in collection
             IFontFallBackRule firstRule = rulesList.get_Item(0);
             //Removing 
             rulesList.remove(firstRule);
         }
         finally {
             if (pres != null) pres.dispose();
         }
         

        Parameters:
        targetRule - The rule to remove from the collection.