Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
1353 lines (1243 sloc) 88.9 KB
<Type Name="FontUnit" FullName="System.Web.UI.WebControls.FontUnit">
<TypeSignature Language="C#" Value="public struct FontUnit" />
<TypeSignature Language="ILAsm" Value=".class public sequential ansi serializable sealed beforefieldinit FontUnit extends System.ValueType" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.WebControls.FontUnit" />
<TypeSignature Language="VB.NET" Value="Public Structure FontUnit" />
<TypeSignature Language="C++ CLI" Value="public value class FontUnit" />
<TypeSignature Language="F#" Value="type FontUnit = struct" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.ValueType</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName>System.ComponentModel.TypeConverter(typeof(System.Web.UI.WebControls.FontUnitConverter))</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8">
<AttributeName>System.Serializable</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Represents the size of a font.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For a list of initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>, see the <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor.
## Examples
The following code example demonstrates how to use a <xref:System.Web.UI.WebControls.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 <xref:System.Web.UI.WebControls.WebControl.ApplyStyle%2A> 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.
> [!IMPORTANT]
> 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](https://msdn.microsoft.com/library/772c7312-211a-4eb3-8d6e-eec0aa1dcc07).
[!code-aspx-csharp[StyleClass#1](~/samples/snippets/csharp/VS_Snippets_WebNet/StyleClass/CS/styleclasscs.aspx#1)]
[!code-aspx-vb[StyleClass#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/StyleClass/VB/styleclassvb.aspx#1)]
[!code-aspx-csharp[StyleClass#3](~/samples/snippets/csharp/VS_Snippets_WebNet/StyleClass/CS/styleclasscs.aspx#3)]
[!code-aspx-vb[StyleClass#3](~/samples/snippets/visualbasic/VS_Snippets_WebNet/StyleClass/VB/styleclassvb.aspx#3)]
]]></format>
</remarks>
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (double value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float64 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.Double)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As Double)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(double value);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : double -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit value" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.Double" Index="0" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8" />
</Parameters>
<Docs>
<param name="value">A <see cref="T:System.Double" /> that specifies the font size.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified font size in points.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor to create and initialize an instance of the <xref:System.Web.UI.WebControls.FontUnit> class using the specified font size. The following table shows initial property values for the <xref:System.Web.UI.WebControls.FontUnit> object that is created.
|Property|Initial value|
|--------------|-------------------|
|`Type`|The <xref:System.Web.UI.WebControls.FontSize.AsUnit> value.|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> with the <xref:System.Web.UI.WebControls.Unit.Value%2A> property equal to `value` and the <xref:System.Web.UI.WebControls.Unit.Type%2A> property equal to the <xref:System.Web.UI.WebControls.UnitType.Point> value.|
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="value" /> is outside the valid range.</exception>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
<altmember cref="P:System.Web.UI.WebControls.Unit.Value" />
<altmember cref="F:System.Web.UI.WebControls.FontSize.AsUnit" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (int value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(int32 value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As Integer)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(int value);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : int -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit value" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.Int32" />
</Parameters>
<Docs>
<param name="value">The size of the font.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified font size.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this constructor to create and initialize a new instance of the <xref:System.Web.UI.WebControls.FontUnit> class using the specified font size.
The following table shows initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.AsUnit`|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> with its <xref:System.Web.UI.WebControls.Unit.Value%2A> property set to the font size specified by the `value` parameter.|
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
<altmember cref="P:System.Web.UI.WebControls.Unit.Value" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (string value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As String)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(System::String ^ value);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : string -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit value" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.String" />
</Parameters>
<Docs>
<param name="value">A string to specify the font size.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified string.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor calls the <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor, using the <xref:System.Globalization.CultureInfo.CurrentCulture%2A> property for the <xref:System.Globalization.CultureInfo> parameter.
]]></format>
</remarks>
<altmember cref="Overload:System.Web.UI.WebControls.FontUnit.#ctor" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (System.Web.UI.WebControls.FontSize type);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Web.UI.WebControls.FontSize type) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.Web.UI.WebControls.FontSize)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (type As FontSize)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(System::Web::UI::WebControls::FontSize type);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : System.Web.UI.WebControls.FontSize -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit type" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="type" Type="System.Web.UI.WebControls.FontSize" />
</Parameters>
<Docs>
<param name="type">One of the <see cref="T:System.Web.UI.WebControls.FontSize" /> values.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified <see cref="T:System.Web.UI.WebControls.FontSize" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this constructor to create and initialize a new instance of the <xref:System.Web.UI.WebControls.FontUnit> class using the specified <xref:System.Web.UI.WebControls.FontSize> object.
If the `type` parameter contains the value `FontSize.AsUnit`, the following table shows the initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.AsUnit`|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> object with its <xref:System.Web.UI.WebControls.Unit.Value%2A> property set to `10`.|
If the `type` parameter contains any other <xref:System.Web.UI.WebControls.FontSize> value, the following table shows the initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|The value of the `type` parameter.|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">The specified font size is not one of the <see cref="T:System.Web.UI.WebControls.FontSize" /> values.</exception>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
<altmember cref="P:System.Web.UI.WebControls.Unit.Value" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (System.Web.UI.WebControls.Unit value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype System.Web.UI.WebControls.Unit value) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.Web.UI.WebControls.Unit)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As Unit)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(System::Web::UI::WebControls::Unit value);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : System.Web.UI.WebControls.Unit -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit value" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.Web.UI.WebControls.Unit" />
</Parameters>
<Docs>
<param name="value">A <see cref="T:System.Web.UI.WebControls.Unit" /> that specifies the font size.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified <see cref="T:System.Web.UI.WebControls.Unit" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use this constructor to create and initialize a new instance of the <xref:System.Web.UI.WebControls.FontUnit> class using the specified <xref:System.Web.UI.WebControls.Unit>.
If the <xref:System.Web.UI.WebControls.Unit.IsEmpty%2A> property of the <xref:System.Web.UI.WebControls.Unit> passed in the `value` parameter is `true`, the following table shows initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.NotSet`|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
If the <xref:System.Web.UI.WebControls.Unit.IsEmpty%2A> property of the <xref:System.Web.UI.WebControls.Unit> passed in the `value` parameter is `false`, the following table shows initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.AsUnit`|
|`Unit`|The value of the `value` parameter.|
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (double value, System.Web.UI.WebControls.UnitType type);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(float64 value, valuetype System.Web.UI.WebControls.UnitType type) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.Double,System.Web.UI.WebControls.UnitType)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As Double, type As UnitType)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(double value, System::Web::UI::WebControls::UnitType type);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : double * System.Web.UI.WebControls.UnitType -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit (value, type)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.Double" Index="0" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8" />
<Parameter Name="type" Type="System.Web.UI.WebControls.UnitType" Index="1" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8" />
</Parameters>
<Docs>
<param name="value">A <see cref="T:System.Double" /> that specifies the font size.</param>
<param name="type">A <see cref="T:System.Web.UI.WebControls.UnitType" /> to specify the units of the size.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified font size and <see cref="T:System.Web.UI.WebControls.UnitType" /> value.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor to create and initialize an instance of the <xref:System.Web.UI.WebControls.FontUnit> class using the specified font size and measuring unit, such as point or pixel.
The following table shows the initial property values for a <xref:System.Web.UI.WebControls.FontUnit> object.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|The <xref:System.Web.UI.WebControls.FontSize.AsUnit> value.|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> with the <xref:System.Web.UI.WebControls.Unit.Value%2A> property equal to `value` and the <xref:System.Web.UI.WebControls.Unit.Type%2A> property equal to `type`.|
]]></format>
</remarks>
<exception cref="T:System.ArgumentOutOfRangeException">
<paramref name="value" /> is outside the valid range.</exception>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
<altmember cref="P:System.Web.UI.WebControls.Unit.Value" />
<altmember cref="P:System.Web.UI.WebControls.Unit.Type" />
<altmember cref="F:System.Web.UI.WebControls.FontSize.AsUnit" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public FontUnit (string value, System.Globalization.CultureInfo culture);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string value, class System.Globalization.CultureInfo culture) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.#ctor(System.String,System.Globalization.CultureInfo)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (value As String, culture As CultureInfo)" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; FontUnit(System::String ^ value, System::Globalization::CultureInfo ^ culture);" />
<MemberSignature Language="F#" Value="new System.Web.UI.WebControls.FontUnit : string * System.Globalization.CultureInfo -&gt; System.Web.UI.WebControls.FontUnit" Usage="new System.Web.UI.WebControls.FontUnit (value, culture)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="value" Type="System.String" />
<Parameter Name="culture" Type="System.Globalization.CultureInfo" />
</Parameters>
<Docs>
<param name="value">A string to specify the font size.</param>
<param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> used to make string comparisons.</param>
<summary>Initializes a new instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class with the specified string using the specified <see cref="T:System.Globalization.CultureInfo" /> object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.UI.WebControls.FontUnit.%23ctor%2A> constructor recognizes the strings for `value` that are shown in the following table to create a new instance of the <xref:System.Web.UI.WebControls.FontUnit> class.
|String value|<xref:System.Web.UI.WebControls.FontUnit>|
|------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
|`xx-small`, `xxsmall`|<xref:System.Web.UI.WebControls.FontUnit.XXSmall>|
|`x-small`, `xsmall`|<xref:System.Web.UI.WebControls.FontUnit.XSmall>|
|`x-large`, `xlarge`|<xref:System.Web.UI.WebControls.FontUnit.XLarge>|
|`xx-large`, `xxlarge`|<xref:System.Web.UI.WebControls.FontUnit.XXLarge>|
|`small`|<xref:System.Web.UI.WebControls.FontUnit.Small>|
|`smaller`|<xref:System.Web.UI.WebControls.FontUnit.Smaller>|
|`large`|<xref:System.Web.UI.WebControls.FontUnit.Large>|
|`larger`|<xref:System.Web.UI.WebControls.FontUnit.Larger>|
|`medium`|<xref:System.Web.UI.WebControls.FontUnit.Medium>|
In all cases, the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property has the value <xref:System.Web.UI.WebControls.FontSize.NotSet>. The string comparison is case insensitive.
For all other values of `value`, a new instance of the <xref:System.Web.UI.WebControls.FontUnit> class is created by treating `value` as a font size and setting the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property to <xref:System.Web.UI.WebControls.UnitType.Point>.
]]></format>
</remarks>
<altmember cref="Overload:System.Web.UI.WebControls.FontUnit.#ctor" />
</Docs>
</Member>
<Member MemberName="Empty">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Empty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Empty" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Empty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Empty As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Empty;" />
<MemberSignature Language="F#" Value=" staticval mutable Empty : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Empty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents an empty <see cref="T:System.Web.UI.WebControls.FontUnit" /> object.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Empty> field to represent an empty <xref:System.Web.UI.WebControls.FontUnit> object. No HTML rendered output is created when this field is used.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="Equals">
<MemberSignature Language="C#" Value="public override bool Equals (object obj);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool Equals(object obj) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.Equals(System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function Equals (obj As Object) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; override bool Equals(System::Object ^ obj);" />
<MemberSignature Language="F#" Value="override this.Equals : obj -&gt; bool" Usage="fontUnit.Equals obj" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="obj" Type="System.Object" />
</Parameters>
<Docs>
<param name="obj">A <see cref="T:System.Object" /> that contains the object to compare to this instance.</param>
<summary>Determines whether the specified <see cref="T:System.Object" /> is equivalent to the instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class that this method is called from.</summary>
<returns>
<see langword="true" /> if the specified <see cref="T:System.Object" /> is equivalent to the instance of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> class that this method is called from; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Equals%2A> method to determine whether the specified <xref:System.Object?displayProperty=nameWithType> is equivalent to the instance of the <xref:System.Web.UI.WebControls.FontUnit> class that this method is called from. For the specified <xref:System.Object?displayProperty=nameWithType> to be equivalent, the object must be a <xref:System.Web.UI.WebControls.FontUnit> that contains the same values for the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> and <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> properties as the instance of the <xref:System.Web.UI.WebControls.FontUnit> class that this method is called from.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontUnit" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<Member MemberName="GetHashCode">
<MemberSignature Language="C#" Value="public override int GetHashCode ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance int32 GetHashCode() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.GetHashCode" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function GetHashCode () As Integer" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; override int GetHashCode();" />
<MemberSignature Language="F#" Value="override this.GetHashCode : unit -&gt; int" Usage="fontUnit.GetHashCode " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns the hash code for this instance.</summary>
<returns>A 32-bit signed integer that represents the hash code.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="IsEmpty">
<MemberSignature Language="C#" Value="public bool IsEmpty { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsEmpty" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.FontUnit.IsEmpty" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property IsEmpty As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property bool IsEmpty { bool get(); };" />
<MemberSignature Language="F#" Value="member this.IsEmpty : bool" Usage="System.Web.UI.WebControls.FontUnit.IsEmpty" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a value that indicates whether the font size has been set.</summary>
<value>
<see langword="true" /> if the font size has not been set; otherwise, <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.IsEmpty%2A> property to determine whether the font size has been set.
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Large">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Large;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Large" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Large" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Large As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Large;" />
<MemberSignature Language="F#" Value=" staticval mutable Large : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Large" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.Large" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Large> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.Large`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:Large"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="5">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="Larger">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Larger;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Larger" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Larger" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Larger As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Larger;" />
<MemberSignature Language="F#" Value=" staticval mutable Larger : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Larger" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.Larger" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Larger> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.Larger`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:Larger"`. In browsers earlier than Internet Explorer 4.0, no HTML rendered output is created.
> [!NOTE]
> Some browsers do not recognize the <xref:System.Web.UI.WebControls.FontSize.Larger> font size. Check your browser for compatibility.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="Medium">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Medium;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Medium" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Medium" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Medium As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Medium;" />
<MemberSignature Language="F#" Value=" staticval mutable Medium : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Medium" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.Medium" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Medium> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.Medium`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:Medium"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="4">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="op_Equality">
<MemberSignature Language="C#" Value="public static bool operator == (System.Web.UI.WebControls.FontUnit left, System.Web.UI.WebControls.FontUnit right);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_Equality(valuetype System.Web.UI.WebControls.FontUnit left, valuetype System.Web.UI.WebControls.FontUnit right) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.op_Equality(System.Web.UI.WebControls.FontUnit,System.Web.UI.WebControls.FontUnit)" />
<MemberSignature Language="VB.NET" Value="Public Shared Operator == (left As FontUnit, right As FontUnit) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static bool operator ==(System::Web::UI::WebControls::FontUnit left, System::Web::UI::WebControls::FontUnit right);" />
<MemberSignature Language="F#" Value="static member ( = ) : System.Web.UI.WebControls.FontUnit * System.Web.UI.WebControls.FontUnit -&gt; bool" Usage="left = right" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="left" Type="System.Web.UI.WebControls.FontUnit" />
<Parameter Name="right" Type="System.Web.UI.WebControls.FontUnit" />
</Parameters>
<Docs>
<param name="left">A <see cref="T:System.Web.UI.WebControls.FontUnit" /> on the left of the operator that contains font properties.</param>
<param name="right">A <see cref="T:System.Web.UI.WebControls.FontUnit" /> on the right of the operator that contains font properties.</param>
<summary>Compares two <see cref="T:System.Web.UI.WebControls.FontUnit" /> objects for equality.</summary>
<returns>
<see langword="true" /> if both <see cref="T:System.Web.UI.WebControls.FontUnit" /> objects are equal; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For the <xref:System.Web.UI.WebControls.FontUnit> objects to be equivalent, each object must have the same values for the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> and <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> properties.
The equivalent method for this operator is <xref:System.Web.UI.WebControls.FontUnit.Equals%28System.Object%29?displayProperty=nameWithType>]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontUnit" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<Member MemberName="op_Implicit">
<MemberSignature Language="C#" Value="public static implicit operator System.Web.UI.WebControls.FontUnit (int n);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname valuetype System.Web.UI.WebControls.FontUnit op_Implicit(int32 n) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.op_Implicit(System.Int32)~System.Web.UI.WebControls.FontUnit" />
<MemberSignature Language="VB.NET" Value="Public Shared Widening Operator CType (n As Integer) As FontUnit" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static operator System::Web::UI::WebControls::FontUnit(int n);" />
<MemberSignature Language="F#" Value="static member op_Implicit : int -&gt; System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.op_Implicit n" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="n" Type="System.Int32" />
</Parameters>
<Docs>
<param name="n">An integer representing the <see cref="T:System.Drawing.Point" /> value to convert into a <see cref="T:System.Web.UI.WebControls.FontUnit" />.</param>
<summary>Implicitly creates a <see cref="T:System.Web.UI.WebControls.FontUnit" /> of type <see cref="T:System.Drawing.Point" /> from an integer value.</summary>
<returns>A <see cref="T:System.Web.UI.WebControls.FontUnit" /> of type <see cref="T:System.Drawing.Point" /> that represents the font size specified the <paramref name="n" /> parameter.</returns>
<remarks>
<format type="text/markdown"><![CDATA[The equivalent method for this operator is <xref:System.Web.UI.WebControls.FontUnit.Point%28System.Int32%29?displayProperty=nameWithType>]]></format>
</remarks>
<altmember cref="M:System.Web.UI.WebControls.FontUnit.Point(System.Int32)" />
</Docs>
</Member>
<Member MemberName="op_Inequality">
<MemberSignature Language="C#" Value="public static bool operator != (System.Web.UI.WebControls.FontUnit left, System.Web.UI.WebControls.FontUnit right);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig specialname bool op_Inequality(valuetype System.Web.UI.WebControls.FontUnit left, valuetype System.Web.UI.WebControls.FontUnit right) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.op_Inequality(System.Web.UI.WebControls.FontUnit,System.Web.UI.WebControls.FontUnit)" />
<MemberSignature Language="VB.NET" Value="Public Shared Operator != (left As FontUnit, right As FontUnit) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static bool operator !=(System::Web::UI::WebControls::FontUnit left, System::Web::UI::WebControls::FontUnit right);" />
<MemberSignature Language="F#" Value="static member op_Inequality : System.Web.UI.WebControls.FontUnit * System.Web.UI.WebControls.FontUnit -&gt; bool" Usage="System.Web.UI.WebControls.FontUnit.op_Inequality (left, right)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="left" Type="System.Web.UI.WebControls.FontUnit" />
<Parameter Name="right" Type="System.Web.UI.WebControls.FontUnit" />
</Parameters>
<Docs>
<param name="left">A <see cref="T:System.Web.UI.WebControls.FontUnit" /> that contains font properties on the left of the operator.</param>
<param name="right">A <see cref="T:System.Web.UI.WebControls.FontUnit" /> that contains font properties on the right of the operator.</param>
<summary>Compares two <see cref="T:System.Web.UI.WebControls.FontUnit" /> objects for inequality.</summary>
<returns>
<see langword="true" /> if both <see cref="T:System.Web.UI.WebControls.FontUnit" /> objects are not equal; otherwise, <see langword="false" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
For the <xref:System.Web.UI.WebControls.FontUnit> objects to be not equal to each other, each object must either have different values for the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property or the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property.
The equivalent method for this operator is <xref:System.Web.UI.WebControls.FontUnit.Equals%28System.Object%29?displayProperty=nameWithType>]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontUnit" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<MemberGroup MemberName="Parse">
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Converts the specified string to its <see cref="T:System.Web.UI.WebControls.FontUnit" /> equivalent.</summary>
</Docs>
</MemberGroup>
<Member MemberName="Parse">
<MemberSignature Language="C#" Value="public static System.Web.UI.WebControls.FontUnit Parse (string s);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Web.UI.WebControls.FontUnit Parse(string s) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.Parse(System.String)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function Parse (s As String) As FontUnit" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static System::Web::UI::WebControls::FontUnit Parse(System::String ^ s);" />
<MemberSignature Language="F#" Value="static member Parse : string -&gt; System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Parse s" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
</Parameters>
<Docs>
<param name="s">A string representation of one of the <see cref="T:System.Web.UI.WebControls.FontSize" /> values.</param>
<summary>Converts the specified string to its <see cref="T:System.Web.UI.WebControls.FontUnit" /> equivalent.</summary>
<returns>A <see cref="T:System.Web.UI.WebControls.FontUnit" /> that represents the font size specified by the <paramref name="s" /> parameter.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the static <xref:System.Web.UI.WebControls.FontUnit.Parse%2A> method to convert the specified string to its <xref:System.Web.UI.WebControls.FontUnit> equivalent.
If the value of the `s` parameter is not `null`, not <xref:System.String.Empty?displayProperty=nameWithType>, and a valid <xref:System.Web.UI.WebControls.FontSize> value, the following table shows initial property values for the new instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|The <xref:System.Web.UI.WebControls.FontSize> enumeration equivalent of the `s` parameter.|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
If the value of the `s` parameter is not `null`, not <xref:System.String.Empty?displayProperty=nameWithType>, and an invalid <xref:System.Web.UI.WebControls.FontSize> value, the following table shows initial property values for the new instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.AsUnit`|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> object with its <xref:System.Web.UI.WebControls.Unit.Value%2A> property initialized with the `s` parameter in the current thread's culture.|
If the value of the `s` parameter is `null` or <xref:System.String.Empty?displayProperty=nameWithType>, the following table shows initial property values for the new instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.NotSet`|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
## Examples
[!code-aspx-csharp[StyleClass#1](~/samples/snippets/csharp/VS_Snippets_WebNet/StyleClass/CS/styleclasscs.aspx#1)]
[!code-aspx-vb[StyleClass#1](~/samples/snippets/visualbasic/VS_Snippets_WebNet/StyleClass/VB/styleclassvb.aspx#1)]
[!code-aspx-csharp[StyleClass#3](~/samples/snippets/csharp/VS_Snippets_WebNet/StyleClass/CS/styleclasscs.aspx#3)]
[!code-aspx-vb[StyleClass#3](~/samples/snippets/visualbasic/VS_Snippets_WebNet/StyleClass/VB/styleclassvb.aspx#3)]
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
</Docs>
</Member>
<Member MemberName="Parse">
<MemberSignature Language="C#" Value="public static System.Web.UI.WebControls.FontUnit Parse (string s, System.Globalization.CultureInfo culture);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Web.UI.WebControls.FontUnit Parse(string s, class System.Globalization.CultureInfo culture) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.Parse(System.String,System.Globalization.CultureInfo)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function Parse (s As String, culture As CultureInfo) As FontUnit" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static System::Web::UI::WebControls::FontUnit Parse(System::String ^ s, System::Globalization::CultureInfo ^ culture);" />
<MemberSignature Language="F#" Value="static member Parse : string * System.Globalization.CultureInfo -&gt; System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Parse (s, culture)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="s" Type="System.String" />
<Parameter Name="culture" Type="System.Globalization.CultureInfo" />
</Parameters>
<Docs>
<param name="s">A string representation of one of the <see cref="T:System.Web.UI.WebControls.FontSize" /> values.</param>
<param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that represents the culture of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object.</param>
<summary>Converts the specified string to its <see cref="T:System.Web.UI.WebControls.FontUnit" /> equivalent in the specified culture.</summary>
<returns>A <see cref="T:System.Web.UI.WebControls.FontUnit" /> that represents the font size specified by the <paramref name="s" /> parameter in the culture specified by the <paramref name="culture" /> parameter.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the static <xref:System.Web.UI.WebControls.FontUnit.Parse%2A> method to convert the specified string and culture to its <xref:System.Web.UI.WebControls.FontUnit> equivalent.
If the value of the `s` parameter is not `null`, not <xref:System.String.Empty?displayProperty=nameWithType>, and a valid <xref:System.Web.UI.WebControls.FontSize> value, the following table shows initial property values for the new instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|The <xref:System.Web.UI.WebControls.FontSize> enumeration equivalent of the `s` parameter.|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
If the value of the `s` parameter is not `null`, not <xref:System.String.Empty?displayProperty=nameWithType>, and an invalid <xref:System.Web.UI.WebControls.FontSize> value, the following table shows initial property values for the new instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.AsUnit`|
|`Unit`|A <xref:System.Web.UI.WebControls.Unit> object with its <xref:System.Web.UI.WebControls.Unit.Value%2A> property initialized with the `s` parameter in the specified culture.|
If the value of the `s` parameter is `null` or <xref:System.String.Empty?displayProperty=nameWithType>, the following table shows initial property values for an instance of <xref:System.Web.UI.WebControls.FontUnit>.
|Property|Initial Value|
|--------------|-------------------|
|`Type`|`FontSize.NotSet`|
|`Unit`|<xref:System.Web.UI.WebControls.Unit.Empty>|
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="T:System.Globalization.CultureInfo" />
</Docs>
</Member>
<Member MemberName="Point">
<MemberSignature Language="C#" Value="public static System.Web.UI.WebControls.FontUnit Point (int n);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig valuetype System.Web.UI.WebControls.FontUnit Point(int32 n) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.Point(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function Point (n As Integer) As FontUnit" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; static System::Web::UI::WebControls::FontUnit Point(int n);" />
<MemberSignature Language="F#" Value="static member Point : int -&gt; System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Point n" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="n" Type="System.Int32" />
</Parameters>
<Docs>
<param name="n">An integer representing the <see cref="T:System.Drawing.Point" /> value to convert to a <see cref="T:System.Web.UI.WebControls.FontUnit" />.</param>
<summary>Creates a <see cref="T:System.Web.UI.WebControls.FontUnit" /> of type <see cref="T:System.Drawing.Point" /> from an integer value.</summary>
<returns>A <see cref="T:System.Web.UI.WebControls.FontUnit" /> that represents the font size specified by the <paramref name="n" /> parameter.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the static <xref:System.Web.UI.WebControls.FontUnit.Point%2A> method to create a <xref:System.Web.UI.WebControls.FontUnit> that represents the font size specified by the `n` parameter.
]]></format>
</remarks>
<altmember cref="T:System.Drawing.Point" />
</Docs>
</Member>
<Member MemberName="Small">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Small;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Small" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Small" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Small As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Small;" />
<MemberSignature Language="F#" Value=" staticval mutable Small : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Small" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.Small" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Small> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.Small`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:Small"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="3">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="Smaller">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit Smaller;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit Smaller" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly Smaller As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit Smaller;" />
<MemberSignature Language="F#" Value=" staticval mutable Smaller : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.Smaller" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.Smaller" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Smaller> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.Smaller`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:Smaller"`. In browsers earlier than Internet Explorer 4.0, no HTML rendered output is created.
> [!NOTE]
> Some browsers do not recognize the <xref:System.Web.UI.WebControls.FontSize.Smaller> font size. Check your browser for compatibility.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<MemberGroup MemberName="ToString">
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Converts the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object to a string representation.</summary>
</Docs>
</MemberGroup>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public override string ToString ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.ToString" />
<MemberSignature Language="VB.NET" Value="Public Overrides Function ToString () As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; override System::String ^ ToString();" />
<MemberSignature Language="F#" Value="override this.ToString : unit -&gt; string" Usage="fontUnit.ToString " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Converts the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object to the default string representation.</summary>
<returns>The string representation of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.ToString%2A> method to retrieve the string representation of the <xref:System.Web.UI.WebControls.FontUnit>. If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to `FontSize.AsUnit`, the returned string is the string equivalent of the <xref:System.Web.UI.WebControls.Unit> contained in the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property. If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to any other <xref:System.Web.UI.WebControls.FontSize> value, the returned string is the string equivalent of the <xref:System.Web.UI.WebControls.FontSize> value.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public string ToString (System.Globalization.CultureInfo culture);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance string ToString(class System.Globalization.CultureInfo culture) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.ToString(System.Globalization.CultureInfo)" />
<MemberSignature Language="VB.NET" Value="Public Function ToString (culture As CultureInfo) As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::String ^ ToString(System::Globalization::CultureInfo ^ culture);" />
<MemberSignature Language="F#" Value="override this.ToString : System.Globalization.CultureInfo -&gt; string" Usage="fontUnit.ToString culture" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="culture" Type="System.Globalization.CultureInfo" />
</Parameters>
<Docs>
<param name="culture">A <see cref="T:System.Globalization.CultureInfo" /> that contains the culture to represent the <see cref="T:System.Web.UI.WebControls.FontUnit" />.</param>
<summary>Converts the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object to a string representation, using the specified <see cref="T:System.Globalization.CultureInfo" />.</summary>
<returns>The string representation of the <see cref="T:System.Web.UI.WebControls.FontUnit" /> object in the specified culture.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.ToString%2A> method to retrieve the string representation of the <xref:System.Web.UI.WebControls.FontUnit> in the specified culture. If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to `FontSize.AsUnit`, the returned string is the string equivalent of the <xref:System.Web.UI.WebControls.Unit> contained in the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property. If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to any other <xref:System.Web.UI.WebControls.FontSize> value, the returned string is the string equivalent of the <xref:System.Web.UI.WebControls.FontSize> value.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
</Docs>
</Member>
<Member MemberName="ToString">
<MemberSignature Language="C#" Value="public string ToString (IFormatProvider formatProvider);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance string ToString(class System.IFormatProvider formatProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.WebControls.FontUnit.ToString(System.IFormatProvider)" />
<MemberSignature Language="VB.NET" Value="Public Function ToString (formatProvider As IFormatProvider) As String" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; System::String ^ ToString(IFormatProvider ^ formatProvider);" />
<MemberSignature Language="F#" Value="override this.ToString : IFormatProvider -&gt; string" Usage="fontUnit.ToString formatProvider" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="formatProvider" Type="System.IFormatProvider" Index="0" FrameworkAlternate="netframework-2.0;netframework-3.0;netframework-3.5;netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8" />
</Parameters>
<Docs>
<param name="formatProvider">An <see cref="T:System.IFormatProvider" /> that supplies culture-specific formatting information, which is used if the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property is set to the <see cref="F:System.Web.UI.WebControls.FontSize.AsUnit" /> value; otherwise, it is ignored.</param>
<summary>Converts a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object to a string equivalent using the specified format provider.</summary>
<returns>A string that represents this <see cref="T:System.Web.UI.WebControls.FontUnit" />, with any numeric unit value in the format specified by <paramref name="formatProvider" />.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.ToString%2A> method to retrieve the string representation of the <xref:System.Web.UI.WebControls.FontUnit> object using a culture-specific format provider for any numeric values that are in the string.
If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to the <xref:System.Web.UI.WebControls.FontSize.AsUnit> value, the returned string is the string equivalent of the unit value that is contained in the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property. The numeric portion of the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> value is formatted using the specified `formatProvider`. In other words, when the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to the <xref:System.Web.UI.WebControls.FontSize.AsUnit> value, the returned string representation is generated using the <xref:System.Web.UI.WebControls.Unit.ToString%28System.IFormatProvider%29?displayProperty=nameWithType> method on the unit object that is stored in the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property.
If the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property is set to any other <xref:System.Web.UI.WebControls.FontSize> value, the returned string is the string equivalent of the <xref:System.Web.UI.WebControls.FontSize> value.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Type" />
<altmember cref="P:System.Web.UI.WebControls.FontUnit.Unit" />
<altmember cref="T:System.Globalization.NumberFormatInfo" />
</Docs>
</Member>
<Member MemberName="Type">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.FontSize Type { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.UI.WebControls.FontSize Type" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.FontUnit.Type" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Type As FontSize" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Web::UI::WebControls::FontSize Type { System::Web::UI::WebControls::FontSize get(); };" />
<MemberSignature Language="F#" Value="member this.Type : System.Web.UI.WebControls.FontSize" Usage="System.Web.UI.WebControls.FontUnit.Type" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontSize</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Web.UI.WebControls.FontSize" /> enumeration value that represents the font size.</summary>
<value>One of the <see cref="T:System.Web.UI.WebControls.FontSize" /> values.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property to retrieve a <xref:System.Web.UI.WebControls.FontSize> enumeration value that represents the font size.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
</Docs>
</Member>
<Member MemberName="Unit">
<MemberSignature Language="C#" Value="public System.Web.UI.WebControls.Unit Unit { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.UI.WebControls.Unit Unit" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.WebControls.FontUnit.Unit" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Unit As Unit" />
<MemberSignature Language="C++ CLI" Value="public:&#xA; property System::Web::UI::WebControls::Unit Unit { System::Web::UI::WebControls::Unit get(); };" />
<MemberSignature Language="F#" Value="member this.Unit : System.Web.UI.WebControls.Unit" Usage="System.Web.UI.WebControls.FontUnit.Unit" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName>get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.Unit</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets a <see cref="T:System.Web.UI.WebControls.Unit" /> that represents the font size.</summary>
<value>A <see cref="T:System.Web.UI.WebControls.Unit" /> object that specifies the font size.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.Unit%2A> property to retrieve a <xref:System.Web.UI.WebControls.Unit> that represents the font size.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.Unit" />
</Docs>
</Member>
<Member MemberName="XLarge">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit XLarge;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit XLarge" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly XLarge As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit XLarge;" />
<MemberSignature Language="F#" Value=" staticval mutable XLarge : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.XLarge" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.XLarge" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.XLarge> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.XLarge`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:X-Large"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="6">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="XSmall">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit XSmall;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit XSmall" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly XSmall As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit XSmall;" />
<MemberSignature Language="F#" Value=" staticval mutable XSmall : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.XSmall" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.XSmall" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.XSmall> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.XSmall`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:X-Small"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="2">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
<Member MemberName="XXLarge">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit XXLarge;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit XXLarge" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly XXLarge As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit XXLarge;" />
<MemberSignature Language="F#" Value=" staticval mutable XXLarge : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.XXLarge" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.XXLarge" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.XXLarge> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.XXLarge`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:XX-Large"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="7">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
</Docs>
</Member>
<Member MemberName="XXSmall">
<MemberSignature Language="C#" Value="public static readonly System.Web.UI.WebControls.FontUnit XXSmall;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly valuetype System.Web.UI.WebControls.FontUnit XXSmall" />
<MemberSignature Language="DocId" Value="F:System.Web.UI.WebControls.FontUnit.XXSmall" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly XXSmall As FontUnit " />
<MemberSignature Language="C++ CLI" Value="public: static initonly System::Web::UI::WebControls::FontUnit XXSmall;" />
<MemberSignature Language="F#" Value=" staticval mutable XXSmall : System.Web.UI.WebControls.FontUnit" Usage="System.Web.UI.WebControls.FontUnit.XXSmall" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.UI.WebControls.FontUnit</ReturnType>
</ReturnValue>
<Docs>
<summary>Represents a <see cref="T:System.Web.UI.WebControls.FontUnit" /> object with the <see cref="P:System.Web.UI.WebControls.FontUnit.Type" /> property set to <see langword="FontSize.XXSmall" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the <xref:System.Web.UI.WebControls.FontUnit.XXSmall> field to represent a <xref:System.Web.UI.WebControls.FontUnit> object with the <xref:System.Web.UI.WebControls.FontUnit.Type%2A> property set to `FontSize.XXSmall`.
In Internet Explorer 4.0 and later, the HTML rendered output from a control with the <xref:System.Web.UI.WebControls.FontInfo.Size%2A> property set to this field is `style= "font-size:XX-Small"`. In browsers earlier than Internet Explorer 4.0, the HTML rendered output is `<font size="1">`.
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.WebControls.FontSize" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Empty" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Smaller" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Larger" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XSmall" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Small" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Medium" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.Large" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XLarge" />
<altmember cref="F:System.Web.UI.WebControls.FontUnit.XXLarge" />
</Docs>
</Member>
</Members>
</Type>
You can’t perform that action at this time.