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