Add()

FontFallBackRulesCollection::Add(System::SharedPtr<IFontFallBackRule>) method

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

void Aspose::Slides::FontFallBackRulesCollection::Add(System::SharedPtr<IFontFallBackRule> sourceRule) override

Arguments

ParameterTypeDescription
sourceRuleSystem::SharedPtr<IFontFallBackRule>Specified rule for adding

Remarks

auto pres = MakeObject<Presentation>();
//Getting of empty or preinitialized rules collection from FontsManager
auto rulesList = pres->get_FontsManager()->get_FontFallBackRulesCollection();
//Adding of new rule to collection
rulesList->Add(MakeObject<FontFallBackRule>(0x400, 0x4FF, u"Times New Roman"));

See Also