Exemplo n.º 1
0
        /// <summary>
        /// Prints text in two lines
        /// </summary>
        /// <param name="text">Text which shall be displayed.</param>
        /// <param name="charsMaxInLine">Determines the maximum chars on a line.</param>
        public void printInTwoLines(string text, int charsMaxInLine = 16)
        {
            string line1 = "", line2 = "";

            line1 = text.Substring(0, charsMaxInLine);
            line2 = text.Substring(charsMaxInLine);
            prints(line1);
            gotoSecondLine();
            CurrentText.AppendLine();
            prints(line2);
            CurrentTextPlainString = text;
        }