FontUnitConverter 类
将 FontUnit 转换为字符串。它还将字符串转换为 FontUnit。
**命名空间:**System.Web.UI.WebControls
**程序集:**System.Web(在 system.web.dll 中)
语法
声明
Public Class FontUnitConverter
Inherits TypeConverter
用法
Dim instance As FontUnitConverter
public class FontUnitConverter : TypeConverter
public ref class FontUnitConverter : public TypeConverter
public class FontUnitConverter extends TypeConverter
public class FontUnitConverter extends TypeConverter
备注
FontUnitConverter 类用于将数据与 FontUnit 和字符串类型相互转换。
警告
无论何时都不要直接访问类型转换器。而应通过使用 System.ComponentModel.TypeDescriptor 调用适当的转换器。有关更多信息,请参见 System.ComponentModel.TypeConverter 基类中的示例。
.NET Framework 安全性
- AspNetHostingPermission 用于在宿主环境中进行操作。要求值:LinkDemand。权限值:Minimal。
- AspNetHostingPermission 用于在宿主环境中进行操作。要求值:InheritanceDemand。权限值:Minimal。
继承层次结构
System.Object
System.ComponentModel.TypeConverter
System.Web.UI.WebControls.FontUnitConverter
线程安全
此类型的任何公共静态(Visual Basic 中的 Shared)成员都是线程安全的,但不保证所有实例成员都是线程安全的。
平台
Windows 98、Windows 2000 SP4、Windows Server 2003、Windows XP Media Center Edition、Windows XP Professional x64 Edition、Windows XP SP2、Windows XP Starter Edition
.NET Framework 并不是对每个平台的所有版本都提供支持。有关受支持版本的列表,请参见系统要求。
版本信息
.NET Framework
受以下版本支持:2.0、1.1、1.0
请参见
参考
FontUnitConverter 成员
System.Web.UI.WebControls 命名空间
Unit
System.ComponentModel.TypeDescriptor
System.ComponentModel.TypeConverter