Remove()

IFontFallBackRulesCollection::Remove(System::SharedPtr<IFontFallBackRule>) method

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

virtual void Aspose::Slides::IFontFallBackRulesCollection::Remove(System::SharedPtr<IFontFallBackRule> targetRule)=0

Arguments

ParameterTypeDescription
targetRuleSystem::SharedPtr<IFontFallBackRule>The rule to remove from the collection.

Remarks

auto pres = MakeObject<Presentation>();
//Getting of empty or preinitialized rules collection from FontsManager
auto rulesList = pres->get_FontsManager()->get_FontFallBackRulesCollection();
//Adding of several rules to collection
rulesList->Add(MakeObject<FontFallBackRule>(0x400, 0x4FF, u"Times New Roman"));
rulesList->Add(MakeObject<FontFallBackRule>(0x3040, 0x309F, u"MS Mincho"));
//Retrieving of object of the first rule in collection
auto firstRule = rulesList->idx_get(0);
//Removing
rulesList->Remove(firstRule);

See Also