zhao
2021-07-19 8347f2fbddbd25369359dcb2da1233ac48a19fdc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Drawing;
 
namespace Smart.Pdf
{
    public class TableStyle
    {
        internal Color alternateBackgroundColor,backgroundColor,foregroundColor
            ,headerForegroundColor,headerBackgroundColor;
        internal bool visibleHeaders;
 
        internal TableStyle()
        {
            this.backgroundColor=Color.White;
            this.alternateBackgroundColor=Color.White;
            this.headerBackgroundColor=Color.White;
            this.headerForegroundColor=Color.Black;
            this.foregroundColor=Color.Black;
            this.visibleHeaders=true;
        }
        public static TableStyle Professional
        {
            get
            {
                TableStyle ts=new TableStyle();
                ts.headerBackgroundColor=Color.White;
                ts.headerForegroundColor=Color.Black;
                ts.foregroundColor=Color.Black;
                ts.alternateBackgroundColor=Color.White;
                ts.backgroundColor=Color.White;
                return ts;
            }
        }
        public static TableStyle WindowsClassic
        {
            get
            {
                TableStyle ts=new TableStyle();
                ts.headerBackgroundColor=Color.Navy;
                ts.headerForegroundColor=Color.White;
                ts.foregroundColor=Color.Black;
                ts.alternateBackgroundColor=Color.Gainsboro;
                ts.backgroundColor=Color.White;
                return ts;
            }
        }
    }
}