Method Draw
Draw(Rectangle, Attribute, Attribute, Rectangle, IConsoleDriver?)
Draws the text held by TextFormatter to IConsoleDriver using the colors specified.
public void Draw(Rectangle screen, Attribute normalColor, Attribute hotColor, Rectangle maximum = default, IConsoleDriver? driver = null)
Parameters
screenRectangleSpecifies the screen-relative location and maximum size for drawing the text.
normalColorAttributeThe color to use for all text except the hotkey
hotColorAttributeThe color to use to draw the hotkey
maximumRectangleSpecifies the screen-relative location and maximum container size.
driverIConsoleDriverThe console driver currently used by the application.
Remarks
Causes the text to be formatted (references GetLines()). Sets NeedsFormat to
false.