public void FillRect(int x, int y, int w, int h) { for (int xd = x; xd <= x + w; xd++) { DrawLine(xd, y, xd, y + h); } }
protected override void OnPaint(ConsoleBitmap context) { base.OnPaint(context); if (HasFocus) { context.Pen = new ConsoleCharacter(' ', backgroundColor: Application.Theme.FocusColor); context.FillRect(0, 0, Width, Height); } }