FontSize Enumeration
Specifies the size of the rendered text. This class cannot be inherited.
public sealed enum System.Web.UI.MobileControls.FontSize : System.Enum
Remarks
The FontSize enumeration represents the size of a font in a container. For example, if you have a List control inside of a Panel control, with the Panel control's font size set to Normal, you can specify a small font size for the List control as shown in the following ASP.NET code fragment.
<mobile:Panel
runat="server"
Font-Size="Normal">
<mobile:List
runat="server"
Font-Size="Small"
Add list details here>
</mobile:List>
</mobile:Panel>
Members
Member name | Description |
---|---|
NotSet | Default value. If the value is NotSet, then the font's size is inherited from the control's style, or, if the style is not defined, from the control's parent control. |
Normal | Default font size. |
Small | Font is smaller than Normal. |
Large | Font is larger than Normal. |
Example
This example changes the font size of a label to large.
[C#]
private void Form1_Activate(object sender, System.EventArgs e)
{
Label1.Font.Size = FontSize.Large;
}
Requirements
Namespace: System.Web.UI.MobileControls
Assembly: System.Web.Mobile
See Also
System.Web.UI.MobileControls Namespace