public interface IFontFallBackRulesCollection extends IGenericCollection<IFontFallBackRule>
Represents a collection of FontFallBack rules, defined by user
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.
|
iterator
IFontFallBackRule get_Item(int index)
Gets the rule at the specified index.
Read-only IFontFallBackRule
.
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(); }
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(); }
sourceRule
- Specified rule for addingvoid 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(); }
targetRule
- The rule to remove from the collection.