예제 #1
0
 /// <summary>
 /// Set the color of the drawing
 /// </summary>
 /// <param name="color">The color</param>
 public void SetColor(ExcelIndexedColor color)
 {
     Color = null;
     Theme = null;
     Auto  = null;
     Index = (int)color;
 }
예제 #2
0
 /// <summary>
 /// Set the color of the object
 /// </summary>
 /// <param name="color">The color</param>
 public void SetColor(ExcelIndexedColor color)
 {
     Indexed = (int)color;
 }
예제 #3
0
 /// <summary>
 /// Sets an indexed color
 /// </summary>
 /// <param name="indexedColor">The indexed color</param>
 public void SetColor(ExcelIndexedColor indexedColor)
 {
     Clear();
     _indexed = (int)indexedColor;
 }
예제 #4
0
 /// <summary>
 /// Set the background to a specific color and fillstyle
 /// </summary>
 /// <param name="color">The indexed color</param>
 /// <param name="fillStyle">The fillstyle. Default Solid</param>
 public void SetBackground(ExcelIndexedColor color, ExcelFillStyle fillStyle = ExcelFillStyle.Solid)
 {
     PatternType = fillStyle;
     BackgroundColor.SetColor(color);
 }