Beispiel #1
0
        /// <summary>
        /// calc color of column
        /// </summary>
        /// <param name="guiColumn"></param>
        /// <returns></returns>
        private Color ColumnColor(int guiColumn)
        {
            Color color = tableControl.BgColor;

            if (tableControl.ColorBy == TableColorBy.Column)
            {
                if (guiColumn != TableControl.TAIL_COLUMN_IDX)
                {
                    color = tableControl.getColumn(guiColumn).BgColor;
                }
                else
                {
                    //If _colorBy == TableColorBy.Column, table color is set to transparent. So, for the the extra
                    //area which is outside the columns will also become transparent. To avoid this, use default
                    //color for the extra area.
                    color = tableControl.BgColor;
                }
            }
            return(color);
        }