Пример #1
0
        /**
         * Set cell color. This sets some associated values; for finer control
         * you may want to access these elements individually.
         * @param rgbStr - the desired cell color, in the hex form "RRGGBB".
         */

        public void SetColor(string rgbStr)
        {
            CT_TcPr tcpr  = ctTc.IsSetTcPr() ? ctTc.tcPr : ctTc.AddNewTcPr();
            CT_Shd  ctshd = tcpr.IsSetShd() ? tcpr.shd : tcpr.AddNewShd();

            ctshd.color = ("auto");
            ctshd.val   = (ST_Shd.clear);
            ctshd.fill  = (rgbStr);
        }
Пример #2
0
        public void SetColor(string rgbStr)
        {
            CT_TcPr ctTcPr = this.ctTc.IsSetTcPr() ? this.ctTc.tcPr : this.ctTc.AddNewTcPr();
            CT_Shd  ctShd  = ctTcPr.IsSetShd() ? ctTcPr.shd : ctTcPr.AddNewShd();

            ctShd.color = "auto";
            ctShd.val   = ST_Shd.clear;
            ctShd.fill  = rgbStr;
        }