PowerArgs.Cli.ConsoleBitmap.FillRect C# (CSharp) Méthode

FillRect() public méthode

public FillRect ( int x, int y, int w, int h ) : void
x int
y int
w int
h int
Résultat 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

Exemple #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