/// <summary> /// Texts the specified add action. /// </summary> /// <param name="addAction">The add action.</param> /// <returns>TitleBuilder.</returns> public TitleBuilder Text(Action <ItemsFactory <string> > addAction) { var factory = new ItemsFactory <string>(Component.Text); addAction(factory); return(this); }
/// <summary> /// Labelses the specified action. /// </summary> /// <param name="action">The action.</param> /// <returns>PieBuilder.</returns> public PieBuilder Labels(Action <ItemsFactory <string> > action) { var factory = new ItemsFactory <string>(Component.Data.Labels); action(factory); return(this); }
/// <summary> /// Datas the specified add action. /// </summary> /// <param name="addAction">The add action.</param> /// <returns>TDatasetBuilder.</returns> public TDatasetBuilder Data(Action <ItemsFactory <object> > addAction) { Dataset.Data = Dataset.Data ?? new List <object>(); var factory = new ItemsFactory <object>(Dataset.Data); addAction(factory); return(this as TDatasetBuilder); }