Method Draw
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
RectangleSpecifies the screen-relative location and maximum size for drawing the text.
normalColor
AttributeThe color to use for all text except the hotkey
hotColor
AttributeThe color to use to draw the hotkey
maximum
RectangleSpecifies the screen-relative location and maximum container size.
driver
ConsoleDriverThe console driver currently used by the application.
Remarks
Causes the text to be formatted (references GetLines()). Sets NeedsFormat to
false
.