/// <summary>
/// Draw the highlighted cells.
/// </summary>
/// <param name="panel"></param>
/// <param name="graphics"></param>
/// <param name="pRangeToRedraw">The range of cells that must be redrawed. Consider that can contains also not selected cells.</param>
public virtual void DrawHighlight(GridSubPanel panel, DevAge.Drawing.GraphicsCache graphics, Range pRangeToRedraw)
{
if (mRange.IsEmpty() == false &&
pRangeToRedraw.IntersectsWith(mRange))
{
System.Drawing.Rectangle rect = GetDrawingRectangle();
if (rect != System.Drawing.Rectangle.Empty)
{
System.Drawing.Rectangle rectangleToDraw = panel.RectangleGridToPanel(rect);
Border.DrawBorder(graphics, rectangleToDraw);
}
}
}