FontFallBackRulesCollection
IFontsManager.FontFallBackRulesCollection 属性
表示用户的 FontFallBack 规则集合,用于管理字体集合,以便通过回退功能进行正确的替换。可读/可写 IFontFallBackRulesCollection
.
public IFontFallBackRulesCollection FontFallBackRulesCollection { get; set; }
示例
[C#]
using (Presentation pres = new Presentation ())
{
// 从 FontsManager 获取空的或预初始化的规则集合
IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection;
// 向集合中添加规则
rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
// 或者
// 初始化规则集合的新实例
IFontFallBackRulesCollection rulesList = new FontFallBackRulesCollection();
// 向集合中添加规则
rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
// 并用新的集合替换 FontsManager 中的现有集合
pres.FontsManager.FontFallBackRulesCollection = rulesList;
}