/** * Set the background fill color represented as a indexed color value. * * @param index */ public void SetFillBackgroundColor(int index) { CT_PatternFill ptrn = EnsureCTPatternFill(); CT_Color ctColor = ptrn.IsSetBgColor() ? ptrn.bgColor : ptrn.AddNewBgColor(); ctColor.indexed = (uint)index; ctColor.indexedSpecified = true; }
public void SetFillBackgroundColor(int index) { CT_PatternFill ctPatternFill = this.EnsureCTPatternFill(); CT_Color ctColor = ctPatternFill.IsSetBgColor() ? ctPatternFill.bgColor : ctPatternFill.AddNewBgColor(); ctColor.indexed = (uint)index; ctColor.indexedSpecified = true; }