| Contents > SharpPlot > Methods | Index |
SharpPlot.AddTableShading Method
Add background color and optional shading to a table cell.
Example
sp.AddTableShading(4,1,Color.Aqua); sp.AddTableShading(5,1,Color.Aqua); sp.AddTableShading(6,1,Color.Firebrick,FillStyle.Opacity30); sp.AddTableShading(2,2,Color.Firebrick,FillStyle.GradientBottomLeft);
Overloads
- public void AddTableShading(int row,int col,Color cellColor);
- public void AddTableShading(int row,int col,Color cellColor,FillStyle cellFill);
Table cells may be individually shaded, possibly to flag exceptions, for example negative values. Some tables (such as sports results) are conventionally drawn with the diagonal shaded grey, as a team can never play a match against itself.
This method may be called as many times as required to apply solid color or a colour and selected fill pattern cell by cell.
