PowerArgs.Cli.ConsoleBitmap.FillRect C# (CSharp) Method

FillRect() public method

public FillRect ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
return void
        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);
            }
        }

Usage Example

Example #1
0
 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);
     }
 }
All Usage Examples Of PowerArgs.Cli.ConsoleBitmap::FillRect