示例#1
0
        public static TerminalLine Render(double offsetX, double offsetY, string text)
        {
            TerminalLine termLine = TerminalLineFactory.Create(offsetX, offsetY, text);

            termLine.PerformRender();
            return(termLine);
        }
示例#2
0
        /// <summary>
        /// 创建一个新的行,然后渲染,最后返回
        /// </summary>
        /// <param name="text"></param>
        /// <returns></returns>
        private TerminalLine RenderLine(string text)
        {
            TerminalLine line = TerminalLineFactory.Render(0, this.linesHeight, text);

            this.termLines.Add(line);
            this.visualList.Add(line);

            this.linesHeight += line.Height;

            return(line);
        }