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); }
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); }