Skip to content

TextBlock

Iuga Alexandru edited this page Sep 4, 2018 · 1 revision

Description

This control displays a multiline text to the console.

Features

  • Multiline text
  • Left, Top, Right and Bottom Margins
  • Foreground and Background colors

Example

TextBlock textBlock = new TextBlock
{
    Text = "This is a demo for the TextBox control.",
    MarginTop = 1,
    MarginBottom = 1,
    ForegroundColor = ConsoleColor.Cyan
};
textBlock.Display();
Clone this wiki locally