Excel Interior.ColorIndex 색상 목록

2263 단어 Excel
무색
0
 
십구
 
38
 
일
 
이십
 
39
하얀색
이
 
21
 
사십
 
삼
 
22
 
41
 
사
 
23
 
42
 
오
 
24
 
43
 
육
 
25
 
44
 
칠
 
26
 
45
 
팔
 
27
 
46
 
구
 
28
 
47
 
십
 
29
 
48
 
십일
 
삼십
 
49
 
십이
 
31
 
오십
 
십삼
 
32
 
51
 
십사
 
33
 
52
 
십오
 
34
 
53
 
십육
 
35
 
54
 
십칠
 
36
 
55
 
십팔
 
37
 
56
 
맞아요. Interior.ColorIndex 색상 목록입니다.
C# 대 Excel 프로그래밍에서의 사용:
 for (int i = 5; i < countRow + 1; i++)

            {

                string strKB = null;

                Microsoft.Office.Interop.Excel.Range kbrng = (Microsoft.Office.Interop.Excel.Range)sheSource.Cells[i, 1];

                if (kbrng.Value2 != null)

                    strKB = kbrng.Value2.ToString();

                if (strTotal.Contains(strKB))

                    kbrng.Interior.ColorIndex = 3;

            }

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

좋은 웹페이지 즐겨찾기