/// <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; }
/// <summary> /// Set the color of the object /// </summary> /// <param name="color">The color</param> public void SetColor(ExcelIndexedColor color) { Indexed = (int)color; }
/// <summary> /// Sets an indexed color /// </summary> /// <param name="indexedColor">The indexed color</param> public void SetColor(ExcelIndexedColor indexedColor) { Clear(); _indexed = (int)indexedColor; }
/// <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); }