SadConsole.Consoles.Cursor.Print C# (CSharp) Method

Print() public method

Prints text on the console.
public Print ( string text, ICellAppearance template, ICellEffect templateEffect ) : Cursor
text string The text to print.
template ICellAppearance The way the text will look when it is printed.
templateEffect ICellEffect Effect to apply to the text as its printed.
return Cursor
        public Cursor Print(string text, ICellAppearance template, ICellEffect templateEffect)
        {
            ColoredString coloredString;

            if (UseStringParser)
            {
                var console = (SurfaceEditor)_console.Target;
                coloredString = ColoredString.Parse(text, _position.Y * console.TextSurface.Width + _position.X, console.TextSurface, console, new StringParser.ParseCommandStacks());
            }
            else
            {
                coloredString = text.CreateColored(template.Foreground, template.Background, template.SpriteEffect);
                coloredString.SetEffect(templateEffect);
            }

            return Print(coloredString);
        }

Same methods

Cursor::Print ( ColoredString text ) : Cursor
Cursor::Print ( string text ) : Cursor