17 instantiations of FontUnit
System.Web (16)
UI\Html32TextWriter.cs (1)
251
FontUnit fu = new
FontUnit
(value, CultureInfo.InvariantCulture);
UI\WebControls\FontUnit.cs (13)
28
public static readonly FontUnit Empty = new
FontUnit
();
35
public static readonly FontUnit Smaller = new
FontUnit
(FontSize.Smaller);
41
public static readonly FontUnit Larger = new
FontUnit
(FontSize.Larger);
47
public static readonly FontUnit XXSmall = new
FontUnit
(FontSize.XXSmall);
53
public static readonly FontUnit XSmall = new
FontUnit
(FontSize.XSmall);
59
public static readonly FontUnit Small = new
FontUnit
(FontSize.Small);
65
public static readonly FontUnit Medium = new
FontUnit
(FontSize.Medium);
71
public static readonly FontUnit Large = new
FontUnit
(FontSize.Large);
77
public static readonly FontUnit XLarge = new
FontUnit
(FontSize.XLarge);
83
public static readonly FontUnit XXLarge = new
FontUnit
(FontSize.XXLarge);
291
return new
FontUnit
(s, CultureInfo.InvariantCulture);
299
return new
FontUnit
(s, culture);
307
return new
FontUnit
(n);
UI\WebParts\ToolZone.cs (1)
307
style.Font.Size = new
FontUnit
(new Unit(100, UnitType.Percentage));
UI\WebParts\WebPartZoneBase.cs (1)
1450
style.Font.Size = new
FontUnit
(new Unit(100, UnitType.Percentage));
System.Web.DataVisualization (1)
WebForm\General\ChartHttpHandler.cs (1)
646
result.Font.Size = new
FontUnit
(10, UnitType.Point);
85 references to FontUnit
System.Web (80)
ErrorFormatter.cs (1)
193
label.Font.Size =
FontUnit
.Large;
UI\Html32TextWriter.cs (1)
251
FontUnit
fu = new FontUnit(value, CultureInfo.InvariantCulture);
UI\WebControls\FontInfo.cs (8)
179
DefaultValue(typeof(
FontUnit
), ""),
184
public
FontUnit
Size {
187
return (
FontUnit
)(owner.ViewState["Font_Size"]);
189
return
FontUnit
.Empty;
255
if (Size ==
FontUnit
.Empty) {
282
if (fOwner.IsSet(Style.PROP_FONT_SIZE) && (f.Size !=
FontUnit
.Empty))
299
if (fOwner.IsSet(Style.PROP_FONT_SIZE) && (f.Size !=
FontUnit
.Empty))
330
if (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>
28
public static readonly
FontUnit
Empty = new FontUnit();
32
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with
35
public static readonly
FontUnit
Smaller = new FontUnit(FontSize.Smaller);
38
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.Larger'/>
41
public static readonly
FontUnit
Larger = new FontUnit(FontSize.Larger);
44
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with
47
public static readonly
FontUnit
XXSmall = new FontUnit(FontSize.XXSmall);
50
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.XSmall'/>
53
public static readonly
FontUnit
XSmall = new FontUnit(FontSize.XSmall);
56
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.Small'/>
59
public static readonly
FontUnit
Small = new FontUnit(FontSize.Small);
62
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.Medium'/>
65
public static readonly
FontUnit
Medium = new FontUnit(FontSize.Medium);
68
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.Large'/>
71
public static readonly
FontUnit
Large = new FontUnit(FontSize.Large);
74
/// <para>Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with <see langword='FontSize.XLarge'/>
77
public static readonly
FontUnit
XLarge = new FontUnit(FontSize.XLarge);
80
/// Specifies a <see cref='System.Web.UI.WebControls.
FontUnit
'/> with
83
public 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>
258
if (obj == null || !(obj is
FontUnit
))
261
FontUnit
f = (
FontUnit
)obj;
271
/// <para>Compares two <see cref='System.Web.UI.WebControls.
FontUnit
'/> objects for equality.</para>
273
public static bool operator ==(
FontUnit
left,
FontUnit
right) {
279
/// <para>Compares two <see cref='System.Web.UI.WebControls.
FontUnit
'/> objects
282
public static bool operator !=(
FontUnit
left,
FontUnit
right) {
290
public static
FontUnit
Parse(string s) {
298
public 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>
306
public 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>
357
public static implicit operator
FontUnit
(int n) {
358
return
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>
49
return
FontUnit
.Empty;
51
return
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>
80
if ((value == null) || (((
FontUnit
)value).Type == FontSize.NotSet))
83
return ((
FontUnit
)value).ToString(culture);
86
FontUnit
u = (
FontUnit
)value;
91
member = typeof(
FontUnit
).GetField("Empty");
126
member = typeof(
FontUnit
).GetField(fieldName);
130
member = typeof(
FontUnit
).GetConstructor(new Type[] { typeof(Unit) });
150
/// containing standard <see cref='System.Web.UI.WebControls.
FontUnit
'/> values.</para>
155
FontUnit
.Smaller,
156
FontUnit
.Larger,
157
FontUnit
.XXSmall,
158
FontUnit
.XSmall,
159
FontUnit
.Small,
160
FontUnit
.Medium,
161
FontUnit
.Large,
162
FontUnit
.XLarge,
163
FontUnit
.XXLarge
UI\WebControls\FormView.cs (1)
2545
(Font.Size !=
FontUnit
.Empty) ||
UI\WebControls\HyperLinkStyle.cs (1)
103
FontUnit
fu = font.Size;
UI\WebControls\Style.cs (1)
582
FontUnit
fu = font.Size;
System.Web.Mobile (5)
UI\MobileControls\Style.cs (5)
86
control.Font.Size =
FontUnit
.Small;
89
control.Font.Size =
FontUnit
.Large;
92
control.Font.Size =
FontUnit
.Medium;
112
style.Font.Size =
FontUnit
.Larger;
116
style.Font.Size =
FontUnit
.Smaller;