예제 #1
0
파일: Theme.cs 프로젝트: elea30/codereports
 public void SetCellStyle(CellStyleIndex index, CellStyle value)
 {
     var ind = (int)index;
     while (styles.Count <= ind)
         styles.Add(null);
     styles[ind] = value;
 }
예제 #2
0
 public static String BuildHtmlStyle(CellStyle style)
 {
     if (style == null)
         return null;
     StringBuilder sb = new StringBuilder();
     if (style.FontStyle != null)
     {
         if (style.FontStyle.FontColor != null)
             sb.Append("color:").Append(style.FontStyle.FontColor.ToHtml()).Append(";");
     }
     return sb.ToString();
 }