Esempio n. 1
0
 public ExportIEMStyle()
 {
     Font     = DrawUtils.DefaultFont;
     Format   = new GeneralFormat();
     VAlign   = VertAlign.Top;
     HAlign   = HorzAlign.Left;
     TextFill = new SolidFill();
     Fill     = new SolidFill();
     (Fill as SolidFill).Color = Color.Transparent;
     Border  = new Border();
     Padding = new Padding();
 }
Esempio n. 2
0
        public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
        {
            if (value is string)
            {
                FormatBase result    = null;
                string     className = (string)value;
                switch (className)
                {
                case "Boolean":
                    result = new BooleanFormat();
                    break;

                case "Currency":
                    result = new CurrencyFormat();
                    break;

                case "Custom":
                    result = new CustomFormat();
                    break;

                case "Date":
                    result = new DateFormat();
                    break;

                case "General":
                    result = new GeneralFormat();
                    break;

                case "Number":
                    result = new NumberFormat();
                    break;

                case "Percent":
                    result = new PercentFormat();
                    break;

                case "Time":
                    result = new TimeFormat();
                    break;
                }
                return(result);
            }
            return(base.ConvertFrom(context, culture, value));
        }
Esempio n. 3
0
 public override string Format(double value, GeneralFormat format)
 {
     throw new NotImplementedException();
 }