public static double WidthInCm(ElementWidth width)
		{
			switch (width)
			{
				case ElementWidth.Narrow:
					return 60.0;
				case ElementWidth.Medium:
					return 100.0;
				case ElementWidth.Wide:
					return 120.0;
				default:
					throw new NotImplementedException();
			}
		}
Exemple #2
0
 public static double WidthInCm(ElementWidth width)
 {
     switch (width)
     {
         case ElementWidth.Narrow:
             return 60.0;
         case ElementWidth.Medium:
             return 100.0;
         case ElementWidth.Wide:
             return 120.0;
         default:
             throw new NotImplementedException();
     }
 }
 private int GetPercentWidthFromEnum(ElementWidth elemWidth)
 {
     return Utils.GetIntegerOnly(WAFContext.Session.GetEnumName(elemWidth).Substring(7));
 }