PurplePen.DescriptionCourseObj.Highlight C# (CSharp) Method

Highlight() public method

public Highlight ( Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing ) : void
g System.Drawing.Graphics
xformWorldToPixel Matrix
brush System.Drawing.Brush
erasing bool
return void
        public override void Highlight(Graphics g, Matrix xformWorldToPixel, Brush brush, bool erasing)
        {
            if (NumberOfColumns == 1)
                base.Highlight(g, xformWorldToPixel, brush, erasing);
            else {
                RectangleF currentColumnRect = rect;
                currentColumnRect.Width = renderer.ColumnWidth;
                for (int i = 0; i < renderer.NumberOfColumns; ++i) {
                    DrawBorderedRectangle(g, xformWorldToPixel, currentColumnRect, brush, erasing);
                    currentColumnRect.X += renderer.ColumnWidth + renderer.ColumnGap;
                }
            }
        }