Remove

FontFallBackRulesCollection.Remove method

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

public void Remove(IFontFallBackRule targetRule)
ParameterTypeDescription
targetRuleIFontFallBackRuleThe rule to remove from the collection.

Examples

[C#]
using (Presentation pres = new Presentation ())
{
    //Getting of empty or preinitialized rules collection from FontsManager
    IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection;

    //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[0];
    //Removing 
    rulesList.Remove (firstRule);
}

See Also