System.Drawing.Text 命名空间

System.Drawing.Text 命名空间提供高级 GDI+ 排版功能。 The System.Drawing.Text namespace provides advanced GDI+ typography functionality.

FontCollection

为已安装的字体集合和私有字体集合提供基类。Provides a base class for installed and private font collections.

InstalledFontCollection

表示安装在系统上的字体。Represents the fonts installed on the system. 此类不能被继承。This class cannot be inherited.

PrivateFontCollection

提供一个字体系列集合,该集合是基于客户端应用程序提供的字体文件生成的。Provides a collection of font families built from font files that are provided by the client application.

枚举

GenericFontFamilies

指定一般的 FontFamily 对象。Specifies a generic FontFamily object.

HotkeyPrefix

指定与文本相关的热键前缀的显示类型。Specifies the type of display for hot-key prefixes that relate to text.

TextRenderingHint

指定文本呈现的质量。Specifies the quality of text rendering.

注解

基本图形功能由 System.Drawing 命名空间提供。Basic graphics functionality is provided by the System.Drawing namespace. 此命名空间中的类允许用户创建和使用的字体的集合。The classes in this namespace allow users to create and use collections of fonts.

注意

类中System.Drawing.Text命名空间不支持的 Windows 或 ASP.NET 服务中的使用。Classes within the System.Drawing.Text namespace are not supported for use within a Windows or ASP.NET service. 尝试使用在这些应用程序类型之一中的这些类可能会产生意外的问题,如降低服务性能和运行时异常。Attempting to use these classes from within one of these application types may produce unexpected problems, such as diminished service performance and run-time exceptions.

另请参阅