/// <summary>
 ///  Defines a style builder for <see cref="IChartSeries{TDrawingContext}"/> objects.
 /// </summary>
 /// <typeparam name="TDrawingContext">The type of the drawing context.</typeparam>
 /// <param name="styler">The styler.</param>
 /// <param name="predicate">The predicate.</param>
 /// <returns></returns>
 public static VisualsStyle <TDrawingContext> HasRuleForAnySeries <TDrawingContext>(
     this VisualsStyle <TDrawingContext> styler,
     Action <IChartSeries <TDrawingContext> > predicate)
     where TDrawingContext : DrawingContext
 {
     styler.SeriesBuilder.Add(predicate);
     return(styler);
 }
 /// <summary>
 /// Defines a style builder for <see cref="DrawMarginFrame{TDrawingContext}"/> objects.
 /// </summary>
 /// <typeparam name="TDrawingContext">The type of the drawing context.</typeparam>
 /// <param name="styler">The styler.</param>
 /// <param name="predicate">The predicate.</param>
 /// <returns></returns>
 public static VisualsStyle <TDrawingContext> HasRuleForDrawMargin <TDrawingContext>(
     this VisualsStyle <TDrawingContext> styler,
     Action <DrawMarginFrame <TDrawingContext> > predicate)
     where TDrawingContext : DrawingContext
 {
     styler.DrawMarginFrameBuilder.Add(predicate);
     return(styler);
 }
 /// <summary>
 ///  Defines a style builder for stacked horizontal <see cref="IBarSeries{TDrawingContext}"/> objects.
 /// </summary>
 /// <typeparam name="TDrawingContext">The type of the drawing context.</typeparam>
 /// <param name="styler">The styler.</param>
 /// <param name="predicate">The predicate.</param>
 /// <returns></returns>
 public static VisualsStyle <TDrawingContext> HasRuleForStackedRowSeries <TDrawingContext>(
     this VisualsStyle <TDrawingContext> styler,
     Action <IStackedBarSeries <TDrawingContext> > predicate)
     where TDrawingContext : DrawingContext
 {
     styler.StackedRowSeriesBuilder.Add(predicate);
     return(styler);
 }
 /// <summary>
 ///  Defines a style builder for <see cref="IChartView{TDrawingContext}"/> objects.
 /// </summary>
 /// <typeparam name="TDrawingContext">The type of the drawing context.</typeparam>
 /// <param name="styler">The styler.</param>
 /// <param name="predicate">The predicate.</param>
 /// <returns></returns>
 public static VisualsStyle <TDrawingContext> HasRuleForAxes <TDrawingContext>(
     this VisualsStyle <TDrawingContext> styler,
     Action <IPlane <TDrawingContext> > predicate)
     where TDrawingContext : DrawingContext
 {
     styler.AxisBuilder.Add(predicate);
     return(styler);
 }
 /// <summary>
 ///  Defines a style builder for <see cref="IPieSeries{TDrawingContext}"/> objects when used as gauges fills.
 /// </summary>
 /// <typeparam name="TDrawingContext">The type of the drawing context.</typeparam>
 /// <param name="styler">The styler.</param>
 /// <param name="predicate">The predicate.</param>
 /// <returns></returns>
 public static VisualsStyle <TDrawingContext> HasRuleForGaugeFillSeries <TDrawingContext>(
     this VisualsStyle <TDrawingContext> styler,
     Action <IPieSeries <TDrawingContext> > predicate)
     where TDrawingContext : DrawingContext
 {
     styler.GaugeFillSeriesBuilder.Add(predicate);
     return(styler);
 }