Пример #1
0
 public Rectangle(int x, int y, Size size)
     : this(new Point(x, y), size)
 {
 }
Пример #2
0
        public void SetSize(Size size)
        {
            Size = size;

            Text = new char[Height, Width];
            Colors = new ColorInfo[Height, Width];
            Cursor = new Point(0, 0);
        }
Пример #3
0
 public Rectangle(Point location, Size size)
 {
     Location = location;
     Size = size;
 }
Пример #4
0
 public TextBuffer(Size size)
 {
     SetSize(size);
     CurrentColor = new ColorInfo(ConsoleColor.DarkRed, ConsoleColor.White);
 }