示例#1
0
        /// <summary>
        /// Adds a plot band.
        /// </summary>
        /// <returns></returns>
        public ChartPlotBandsBuilder <TValue> Add()
        {
            var item = new ChartPlotBand <TValue>();

            Axis.PlotBands.Add(item);

            return(new ChartPlotBandsBuilder <TValue>(item));
        }
示例#2
0
        /// <summary>
        /// Defines a item.
        /// </summary>
        /// <returns></returns>
        public ChartPlotBandsBuilder Add()
        {
            ChartPlotBand item = new ChartPlotBand();

            Axis.PlotBands.Add(item);

            return(new ChartPlotBandsBuilder(item));
        }
示例#3
0
        /// <summary>
        /// Defines a item.
        /// </summary>
        /// <returns></returns>
        public ChartPlotBandsBuilder <TValue> Add(TValue from, TValue to, string color)
        {
            var item = new ChartPlotBand <TValue>();

            Axis.PlotBands.Add(item);
            item.From  = from;
            item.To    = to;
            item.Color = color;

            return(new ChartPlotBandsBuilder <TValue>(item));
        }
示例#4
0
        /// <summary>
        /// Defines a item.
        /// </summary>
        /// <returns></returns>
        public ChartPlotBandsBuilder Add(double from, double to, string color)
        {
            var item = new ChartPlotBand();

            Axis.PlotBands.Add(item);
            item.From  = from;
            item.To    = to;
            item.Color = color;

            return(new ChartPlotBandsBuilder(item));
        }
示例#5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ChartPlotBandsBuilder"/> class.
 /// </summary>
 /// <param name="item">The plot band.</param>
 public ChartPlotBandsBuilder(ChartPlotBand item)
 {
     this.item = item;
 }
示例#6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ChartPlotBandsBuilder"/> class.
        /// </summary>
        /// <param name="item">The plot bands.</param>
        public ChartPlotBandsBuilder(ChartPlotBand item)
        {
            Guard.IsNotNull(item, "item");

            this.item = item;
        }