FontFallBackRulesCollection
IFontsManager.FontFallBackRulesCollection property
表示用户的 FontFallBack 规则集合,用于管理字体集合以通过回退功能进行适当替换 读/写IFontFallBackRulesCollection
。
public IFontFallBackRulesCollection FontFallBackRulesCollection { get; set; }
例子
[C#]
using (Presentation pres = new Presentation ())
{
// 从 FontsManager
则集合
IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection;
// 将规则添加到 collection
rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
// 或
// 初始化新的规则实例 collection
IFontFallBackRulesCollection rulesList = new FontFallBackRulesCollection();
// 将规则添加到 collection
rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
// 并用 FontsManager
pres.FontsManager.FontFallBackRulesCollection = rulesList;
}
也可以看看
- interface IFontFallBackRulesCollection
- interface IFontsManager
- 命名空间 Aspose.Slides
- 部件 Aspose.Slides