/** * Set the foreground fill color as a indexed color value * * @param index - the color to use */ public void SetFillForegroundColor(int index) { CT_PatternFill ptrn = EnsureCTPatternFill(); CT_Color CT_Color = ptrn.IsSetFgColor() ? ptrn.fgColor : ptrn.AddNewFgColor(); CT_Color.indexed = (uint)index; }
public void SetFillForegroundColor(int index) { CT_PatternFill ctPatternFill = this.EnsureCTPatternFill(); (ctPatternFill.IsSetFgColor() ? ctPatternFill.fgColor : ctPatternFill.AddNewFgColor()).indexed = (uint)index; }