ToArray

ToArray()

创建并返回一个包含此规则所有后备字体的数组。

public string[] ToArray()

Return Value

字符串数组

Examples

[C#]
// 创建一个包含字体列表的规则。
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman");

// 获取所有字体名称作为数组。
string[] fontNames = newRule.ToArray();

See Also


ToArray(int, int)

创建并返回一个包含指定范围内所有后备字体的数组。

public string[] ToArray(int startIndex, int count)
ParameterTypeDescription
startIndexInt32要添加的第一个字体的索引。
countInt32要添加的字体数量。

Return Value

字符串数组

Examples

[C#]
// 创建一个包含字体列表的规则。
IFontFallBackRule newRule = new FontFallBackRule(0x3040, 0x309F, "MS Mincho, MS Gothic, Tahoma, Times New Roman");

// 获取最后两个字体名称作为数组。
string[] fontNames = newRule.ToArray(2,2);

See Also