77 references to UnitType
System.Web (73)
UI\Html32TextWriter.cs (3)
256
if (fu.Unit.Type ==
UnitType
.Point) {
279
if (u.Type ==
UnitType
.Pixel) {
282
if (u.Type ==
UnitType
.Percentage) {
UI\ObjectStateFormatter.cs (1)
610
return new Unit(reader.ReadDouble(), (
UnitType
)reader.ReadInt32());
UI\WebControls\FontUnit.cs (3)
133
public FontUnit(double value) : this(new Unit(value,
UnitType
.Point)) {
140
public FontUnit(double value,
UnitType
type) : this(new Unit(value, type)) {
209
this.value = new Unit(value, culture,
UnitType
.Point);
UI\WebControls\MenuItemStyle.cs (3)
48
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
84
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
110
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
UI\WebControls\MenuRendererStandards.cs (1)
205
indent = new Unit(1,
UnitType
.Em);
UI\WebControls\Style.cs (1)
163
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
UI\WebControls\SubMenuStyle.cs (2)
44
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
70
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
UI\WebControls\Table.cs (1)
248
if (borderWidth.IsEmpty || borderWidth.Type !=
UnitType
.Pixel) {
UI\WebControls\TreeNodeStyle.cs (4)
50
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
75
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
132
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
157
if ((value.Type ==
UnitType
.Percentage) || (value.Value < 0)) {
UI\WebControls\Unit.cs (39)
31
private readonly
UnitType
type;
45
this.type =
UnitType
.Pixel;
60
this.type =
UnitType
.Pixel;
67
/// <see cref='System.Web.UI.WebControls.
UnitType
'/> as the unit type.</para>
69
public Unit(double value,
UnitType
type) {
73
if (type ==
UnitType
.Pixel) {
89
public Unit(string value) : this(value, CultureInfo.CurrentCulture,
UnitType
.Pixel) {
96
public Unit(string value, CultureInfo culture) : this(value, culture,
UnitType
.Pixel) {
99
internal Unit(string value, CultureInfo culture,
UnitType
defaultType) {
102
this.type = (
UnitType
)0;
125
type = (
UnitType
)GetTypeFromString(trimLcase.Substring(lastDigit+1).Trim());
137
if (type ==
UnitType
.Pixel) {
156
return type == (
UnitType
)0;
164
public
UnitType
Type {
170
return
UnitType
.Pixel;
240
private static string GetStringFromType(
UnitType
type) {
242
case
UnitType
.Pixel:
244
case
UnitType
.Point:
246
case
UnitType
.Pica:
248
case
UnitType
.Inch:
250
case
UnitType
.Mm:
252
case
UnitType
.Cm:
254
case
UnitType
.Percentage:
256
case
UnitType
.Em:
258
case
UnitType
.Ex:
268
private static
UnitType
GetTypeFromString(string value) {
271
return
UnitType
.Pixel;
274
return
UnitType
.Point;
277
return
UnitType
.Percentage;
280
return
UnitType
.Pica;
283
return
UnitType
.Inch;
286
return
UnitType
.Mm;
289
return
UnitType
.Cm;
292
return
UnitType
.Em;
295
return
UnitType
.Ex;
301
return
UnitType
.Pixel;
325
return new Unit(n,
UnitType
.Percentage);
342
return new Unit(n,
UnitType
.Point);
366
if (type ==
UnitType
.Pixel) {
UI\WebControls\unitconverter.cs (1)
98
member = typeof(Unit).GetConstructor(new Type[] { typeof(double), typeof(
UnitType
) });
UI\WebParts\AppearanceEditorPart.cs (12)
309
public
UnitType
Type {
312
(
UnitType
)Int32.Parse(_type.SelectedValue, CultureInfo.InvariantCulture) : (
UnitType
)0;
339
((int)
UnitType
.Pixel).ToString(CultureInfo.InvariantCulture)));
341
((int)
UnitType
.Point).ToString(CultureInfo.InvariantCulture)));
343
((int)
UnitType
.Pica).ToString(CultureInfo.InvariantCulture)));
345
((int)
UnitType
.Inch).ToString(CultureInfo.InvariantCulture)));
347
((int)
UnitType
.Mm).ToString(CultureInfo.InvariantCulture)));
349
((int)
UnitType
.Cm).ToString(CultureInfo.InvariantCulture)));
351
((int)
UnitType
.Percentage).ToString(CultureInfo.InvariantCulture)));
353
((int)
UnitType
.Em).ToString(CultureInfo.InvariantCulture)));
355
((int)
UnitType
.Ex).ToString(CultureInfo.InvariantCulture)));
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 (4)
WebForm\ChartWebControl.cs (2)
2359
if(value.Type !=
UnitType
.Pixel)
2457
if(value.Type !=
UnitType
.Pixel)
WebForm\General\ChartHttpHandler.cs (2)
646
result.Font.Size = new FontUnit(10,
UnitType
.Point);
649
result.Width = new Unit(100,
UnitType
.Percentage);