Method Draw
Draw(IDriver?, Rectangle, Attribute, Attribute, Rectangle)
Draws the text held by TextFormatter to IDriver using the colors specified.
public void Draw(IDriver? driver, Rectangle screen, Attribute normalColor, Attribute hotColor, Rectangle maximum = default)
Parameters
driverIDriverThe console driver currently used by the application.
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.
Remarks
Causes the text to be formatted (references GetLines()). Sets NeedsFormat to
false.