Add()

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

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

virtual void Aspose::Slides::IFontFallBackRulesCollection::Add(System::SharedPtr<IFontFallBackRule> sourceRule)=0

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