Method Draw
Draw(Rectangle, ViewDiagnosticFlags, string?, IConsoleDriver?)
Draws the Thickness rectangle with an optional diagnostics label.
public Rectangle Draw(Rectangle rect, ViewDiagnosticFlags diagnosticFlags = ViewDiagnosticFlags.Off, string? label = null, IConsoleDriver? driver = null)
Parameters
rectRectangleThe location and size of the rectangle that bounds the thickness rectangle, in screen coordinates.
diagnosticFlagsViewDiagnosticFlagslabelstringThe diagnostics label to draw on the bottom of the Bottom.
driverIConsoleDriverOptional driver. If not specified, Driver will be used.
Returns
- Rectangle
The inner rectangle remaining to be drawn.
Remarks
If ViewDiagnosticFlags is set to Thickness then 'T', 'L', 'R', and 'B' glyphs will be used instead of space. If ViewDiagnosticFlags is set to Ruler then a ruler will be drawn on the outer edge of the Thickness.