17 instantiations of FontUnit
System.Web (16)
UI\Html32TextWriter.cs (1)
251FontUnit fu = new FontUnit(value, CultureInfo.InvariantCulture);
UI\WebControls\FontUnit.cs (13)
28public static readonly FontUnit Empty = new FontUnit(); 35public static readonly FontUnit Smaller = new FontUnit(FontSize.Smaller); 41public static readonly FontUnit Larger = new FontUnit(FontSize.Larger); 47public static readonly FontUnit XXSmall = new FontUnit(FontSize.XXSmall); 53public static readonly FontUnit XSmall = new FontUnit(FontSize.XSmall); 59public static readonly FontUnit Small = new FontUnit(FontSize.Small); 65public static readonly FontUnit Medium = new FontUnit(FontSize.Medium); 71public static readonly FontUnit Large = new FontUnit(FontSize.Large); 77public static readonly FontUnit XLarge = new FontUnit(FontSize.XLarge); 83public static readonly FontUnit XXLarge = new FontUnit(FontSize.XXLarge); 291return new FontUnit(s, CultureInfo.InvariantCulture); 299return new FontUnit(s, culture); 307return new FontUnit(n);
UI\WebParts\ToolZone.cs (1)
307style.Font.Size = new FontUnit(new Unit(100, UnitType.Percentage));
UI\WebParts\WebPartZoneBase.cs (1)
1450style.Font.Size = new FontUnit(new Unit(100, UnitType.Percentage));
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
646result.Font.Size = new FontUnit(10, UnitType.Point);
85 references to FontUnit
System.Web (80)
ErrorFormatter.cs (1)
193label.Font.Size = FontUnit.Large;
UI\Html32TextWriter.cs (1)
251FontUnit fu = new FontUnit(value, CultureInfo.InvariantCulture);
UI\WebControls\FontInfo.cs (8)
179DefaultValue(typeof(FontUnit), ""), 184public FontUnit Size { 187return (FontUnit)(owner.ViewState["Font_Size"]); 189return FontUnit.Empty; 255if (Size == FontUnit.Empty) { 282if (fOwner.IsSet(Style.PROP_FONT_SIZE) && (f.Size != FontUnit.Empty)) 299if (fOwner.IsSet(Style.PROP_FONT_SIZE) && (f.Size != FontUnit.Empty)) 330if (fOwner.IsSet(Style.PROP_FONT_SIZE) && (!owner.IsSet(Style.PROP_FONT_SIZE) || (Size == FontUnit.Empty)))
UI\WebControls\FontUnit.cs (44)
26/// <para>Specifies an empty <see cref='System.Web.UI.WebControls.FontUnit'/>. This field is read only. </para> 28public static readonly FontUnit Empty = new FontUnit(); 32/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with 35public static readonly FontUnit Smaller = new FontUnit(FontSize.Smaller); 38/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.Larger'/> 41public static readonly FontUnit Larger = new FontUnit(FontSize.Larger); 44/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with 47public static readonly FontUnit XXSmall = new FontUnit(FontSize.XXSmall); 50/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.XSmall'/> 53public static readonly FontUnit XSmall = new FontUnit(FontSize.XSmall); 56/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.Small'/> 59public static readonly FontUnit Small = new FontUnit(FontSize.Small); 62/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.Medium'/> 65public static readonly FontUnit Medium = new FontUnit(FontSize.Medium); 68/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.Large'/> 71public static readonly FontUnit Large = new FontUnit(FontSize.Large); 74/// <para>Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with <see langword='FontSize.XLarge'/> 77public static readonly FontUnit XLarge = new FontUnit(FontSize.XLarge); 80/// Specifies a <see cref='System.Web.UI.WebControls.FontUnit'/> with 83public static readonly FontUnit XXLarge = new FontUnit(FontSize.XXLarge); 90/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with a <see cref='System.Web.UI.WebControls.FontSize'/>.</para> 107/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with a <see cref='System.Web.UI.WebControls.Unit'/>.</para> 122/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with an integer value.</para> 131/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with a double value.</para> 138/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with a double value.</para> 145/// <para>Initializes a new instance of the <see cref='System.Web.UI.WebControls.FontUnit'/> class with a string.</para> 255/// <para>Determines if the specified <see cref='System.Object' qualify='true'/> is equivilent to the <see cref='System.Web.UI.WebControls.FontUnit'/> represented by this instance.</para> 258if (obj == null || !(obj is FontUnit)) 261FontUnit f = (FontUnit)obj; 271/// <para>Compares two <see cref='System.Web.UI.WebControls.FontUnit'/> objects for equality.</para> 273public static bool operator ==(FontUnit left, FontUnit right) { 279/// <para>Compares two <see cref='System.Web.UI.WebControls.FontUnit'/> objects 282public static bool operator !=(FontUnit left, FontUnit right) { 290public static FontUnit Parse(string s) { 298public static FontUnit Parse(string s, CultureInfo culture) { 304/// <para>Creates a <see cref='System.Web.UI.WebControls.FontUnit'/> of type Point from an integer value.</para> 306public static FontUnit Point(int n) { 312/// <para>Convert a <see cref='System.Web.UI.WebControls.FontUnit'/> to a string.</para> 355/// <para>Implicitly creates a <see cref='System.Web.UI.WebControls.FontUnit'/> of type Point from an integer value.</para> 357public static implicit operator FontUnit(int n) { 358return FontUnit.Point(n);
UI\WebControls\FontUnitConverter.cs (23)
19/// <para>Converts a <see cref='System.Web.UI.WebControls.FontUnit'/> to and from a specified data type.</para> 26/// <para>Determines if the specified data type can be converted to a <see cref='System.Web.UI.WebControls.FontUnit'/>.</para> 39/// <para>Converts the specified <see cref='System.Object' qualify='true'/> into a <see cref='System.Web.UI.WebControls.FontUnit'/>.</para> 49return FontUnit.Empty; 51return FontUnit.Parse(textValue, culture); 76/// <para>Converts the specified <see cref='System.Web.UI.WebControls.FontUnit'/> into the specified <see cref='System.Type' qualify='true'/>. </para> 80if ((value == null) || (((FontUnit)value).Type == FontSize.NotSet)) 83return ((FontUnit)value).ToString(culture); 86FontUnit u = (FontUnit)value; 91member = typeof(FontUnit).GetField("Empty"); 126member = typeof(FontUnit).GetField(fieldName); 130member = typeof(FontUnit).GetConstructor(new Type[] { typeof(Unit) }); 150/// containing standard <see cref='System.Web.UI.WebControls.FontUnit'/> values.</para> 155FontUnit.Smaller, 156FontUnit.Larger, 157FontUnit.XXSmall, 158FontUnit.XSmall, 159FontUnit.Small, 160FontUnit.Medium, 161FontUnit.Large, 162FontUnit.XLarge, 163FontUnit.XXLarge
UI\WebControls\FormView.cs (1)
2545(Font.Size != FontUnit.Empty) ||
UI\WebControls\HyperLinkStyle.cs (1)
103FontUnit fu = font.Size;
UI\WebControls\Style.cs (1)
582FontUnit fu = font.Size;
System.Web.Mobile (5)
UI\MobileControls\Style.cs (5)
86control.Font.Size = FontUnit.Small; 89control.Font.Size = FontUnit.Large; 92control.Font.Size = FontUnit.Medium; 112style.Font.Size = FontUnit.Larger; 116style.Font.Size = FontUnit.Smaller;