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
Parameter | Type | Description |
---|---|---|
sourceRule | System::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
- Typedef SharedPtr
- Class IFontFallBackRule
- Class FontFallBackRulesCollection
- Namespace Aspose::Slides
- Library Aspose.Slides