Example #1
0
        public void WriteText(Point position, string message, Color16 foreColor, Color16 backColor)
        {
            string[] lines = message.Split(new string[] { "\r\n" }, StringSplitOptions.None);

            for (int i = 0; i < lines.Length; i++)
            {
                WriteLine(position.AddToY(i), lines[i], foreColor, backColor);
            }
        }
Example #2
0
        public void VLine(Point startPosition, int length, TextCell cell)
        {
            if (length < 1 || startPosition.X < 0 || startPosition.X >= Size.Width)
            {
                return;
            }

            for (int i = 0; i < length; i++) // TODO: needs optimization
            {
                Write(startPosition.AddToY(i), cell);
            }
        }