Example #1
0
        public static Excel.Style SetStringStyle(this Excel.Style style, ThemeType themeType)
        {
            style = style.SetDefaultStyle(themeType);

            style.NumberFormat = "@";

            switch (themeType)
            {
            case ThemeType.White:
                break;

            case ThemeType.Dark:
                break;
            }
            return(style);
        }
Example #2
0
        public static Excel.Style SetNumberStyle(this Excel.Style style, ThemeType themeType)
        {
            style = style.SetDefaultStyle(themeType);

            style.Font.Name = "Consolas";

            switch (themeType)
            {
            case ThemeType.White:
                break;

            case ThemeType.Dark:
                style.Font.Color = Color.FromArgb(181, 206, 168);
                break;
            }
            return(style);
        }