FontInfoCollection

FontInfoCollection

概述

FontInfoCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<FontInfo>。

表示文档中使用的字体集合。

此类提供 2 个方法,用于在 .NET 程序中处理 FontInfoCollection 对象。可用的方法包括:Contains、GetEnumerator。安装 Aspose.Words FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count、EmbedSystemFonts、EmbedTrueTypeFonts、SaveSubsetFonts。

属性

名称类型访问描述
Countint读取获取集合中包含的元素数量。
EmbedTrueTypeFontsbool读写指定在保存文档时是否嵌入 TrueType 字体。
EmbedSystemFontsbool读写指定是否将系统字体嵌入文档中。
SaveSubsetFontsbool读写指定是否将嵌入的 TrueType 字体的子集随文档一起保存。

方法

签名描述
GetEnumerator()返回一个 enumeratoriteratorenumerator 对象,可用于遍历集合中的所有项目。
Contains(name: string)确定集合是否包含具有给定名称的字体。

另请参阅

 中文