/** * Uses the result of Applying this format to the value, Setting the text * and color of a label before returning the result. * * @param label The label to apply to. * @param value The value to Process. * * @return The result, in a {@link CellFormatResult}. */ public CellFormatResult Apply(Label label, Object value) { CellFormatResult result = Apply(value); label.Text = (/*setter*/ result.Text); if (result.TextColor != Color.Empty) { label.ForeColor = (/*setter*/ result.TextColor); } return(result);
/** * Uses the result of applying this format to the given date, setting the text * and color of a label before returning the result. * * @param label The label to apply to. * @param date The date. * @param numericValue The numeric value for the date. * * @return The result, in a {@link CellFormatResult}. */ private CellFormatResult Apply(Label label, DateTime date, double numericValue) { CellFormatResult result = Apply(date, numericValue); label.Text = (result.Text); if (result.TextColor != Color.Empty) { label.ForeColor = (result.TextColor); } return(result); }