Item
FontFallBackRulesCollection 索引器
获取指定索引处的规则。只读 IFontFallBackRule
。
public IFontFallBackRule this[int index] { get; }
示例
[C#]
using (Presentation pres = new Presentation ())
{
// 从 FontsManager 获取空或预初始化的规则集合
IFontFallBackRulesCollection rulesList = pres.FontsManager.FontFallBackRulesCollection;
// 向集合中添加几个规则
rulesList.Add(new FontFallBackRule(0x400,0x4FF, "Times New Roman"));
rulesList.Add(new FontFallBackRule(0x3040, 0x309F, "MS Mincho"));
// 检索集合中第一个规则的对象
IFontFallBackRule firstRule = rulesList[0];
}