FontUnit Structure

Represents the size of a font.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

[SerializableAttribute] 
[TypeConverterAttribute(typeof(FontUnitConverter))] 
public value class FontUnit
/** @attribute SerializableAttribute() */ 
/** @attribute TypeConverterAttribute(System.Web.UI.WebControls.FontUnitConverter) */ 
public final class FontUnit extends ValueType
Not applicable.

For a list of initial property values for an instance of FontUnit, see the FontUnit constructor.

The following code example demonstrates how to use a Style object to change the style properties for multiple controls at one time. Each time one of the Style property values changes, each control must call its ApplyStyle method. Not all the controls included in this example support all the properties that are demonstrated. If a control does not support a particular property, the appearance of the control will not change when the property value is changed.

Security noteSecurity Note:

This example has a text box that accepts user input, which is a potential security threat. By default, ASP.NET Web pages validate that user input does not include script or HTML elements. For more information, see Script Exploits Overview (Visual Studio).

No code example is currently available or this language may not be supported.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: