Exemple #1
0
        /**
         * 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;
        }
Exemple #2
0
        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;
        }