コード例 #1
0
ファイル: ExcelDxfColor.cs プロジェクト: yosmanyhs/EPPlus-1
 /// <summary>
 /// Set the color of the drawing
 /// </summary>
 /// <param name="color">The color</param>
 public void SetColor(eThemeSchemeColor color)
 {
     Color = null;
     Auto  = null;
     Index = null;
     Theme = color;
 }
コード例 #2
0
 /// <summary>
 /// Set the color of the object
 /// </summary>
 /// <param name="color">The color</param>
 public void SetColor(eThemeSchemeColor color)
 {
     Theme = color;
 }
コード例 #3
0
ファイル: ExcelColorXml.cs プロジェクト: yangmaomao86/EPPlus
 /// <summary>
 /// Sets a theme color
 /// </summary>
 /// <param name="themeColorType">The theme color</param>
 public void SetColor(eThemeSchemeColor themeColorType)
 {
     Clear();
     _theme = themeColorType;
 }
コード例 #4
0
 /// <summary>
 /// Set the background to a specific color and fillstyle
 /// </summary>
 /// <param name="color">The theme color</param>
 /// <param name="fillStyle">The fillstyle. Default Solid</param>
 public void SetBackground(eThemeSchemeColor color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)
 {
     PatternType = fillStyle;
     BackgroundColor.SetColor(color);
 }