/// <summary> /// Adds a local BarWidthPositionGroupStyle in case there is no external one. In this case also BeginPrepare is called on /// this newly created group style. /// </summary> /// <param name="externalGroups">Collection of external plot group styles.</param> /// <param name="localGroups">Collection of plot group styles of the plot item.</param> public static void AddLocalGroupStyle( IPlotGroupStyleCollection externalGroups, IPlotGroupStyleCollection localGroups) { if (PlotGroupStyle.ShouldAddLocalGroupStyle(externalGroups, localGroups, typeof(BarSizePosition2DGroupStyle))) { var styleToAdd = new BarSizePosition2DGroupStyle(); localGroups.Add(styleToAdd); } }
public static void AddExternalGroupStyle(IPlotGroupStyleCollection externalGroups) { if (PlotGroupStyle.ShouldAddExternalGroupStyle(externalGroups, typeof(BarSizePosition2DGroupStyle))) { var gstyle = new BarSizePosition2DGroupStyle { IsStepEnabled = true }; externalGroups.Add(gstyle); } }