/// <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)); }
/// <summary> /// Defines a item. /// </summary> /// <returns></returns> public ChartPlotBandsBuilder Add() { ChartPlotBand item = new ChartPlotBand(); Axis.PlotBands.Add(item); return(new ChartPlotBandsBuilder(item)); }
/// <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)); }
/// <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)); }
/// <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; }
/// <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; }