Table of Contents

Method Draw

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Draw(Rectangle, Attribute, Attribute, Rectangle, ConsoleDriver?)

Draws the text held by TextFormatter to ConsoleDriver using the colors specified.

public void Draw(Rectangle screen, Attribute normalColor, Attribute hotColor, Rectangle maximum = default, ConsoleDriver? driver = null)

Parameters

screen Rectangle

Specifies the screen-relative location and maximum size for drawing the text.

normalColor Attribute

The color to use for all text except the hotkey

hotColor Attribute

The color to use to draw the hotkey

maximum Rectangle

Specifies the screen-relative location and maximum container size.

driver ConsoleDriver

The console driver currently used by the application.

Remarks

Causes the text to be formatted (references GetLines()). Sets NeedsFormat to false.

Exceptions

ArgumentOutOfRangeException