FontSize 枚举

定义

注意

The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.

指定呈现的文本的大小。 无法继承此类。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

public enum class FontSize
public enum FontSize
[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]
public enum FontSize
type FontSize = 
[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]
type FontSize = 
Public Enum FontSize
继承
FontSize
属性

字段

名称 说明
NotSet 0

默认值。 如果值为 NotSet,则字体大小继承自控件的样式,或者,如果未定义样式,则从控件的父控件继承。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Normal 1

默认字号。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Small 2

字体小于 Normal。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

Large 3

字体大于 Normal。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

注解

FontSize枚举是容器中字体大小的子集System.Web.UI.WebControls.FontSize。 例如,如果控件内部Panel有一个List控件,且Panel控件的字号设置为“普通”,则可以为List控件指定较小的字号。

适用于

另请参阅