Method Draw
Draw(Rectangle, ViewDiagnosticFlags, string?)
Draws the Thickness rectangle with an optional diagnostics label.
public Rectangle Draw(Rectangle rect, ViewDiagnosticFlags diagnosticFlags = ViewDiagnosticFlags.Off, string? label = null)
Parameters
rect
RectangleThe location and size of the rectangle that bounds the thickness rectangle, in screen coordinates.
diagnosticFlags
ViewDiagnosticFlagslabel
stringThe diagnostics label to draw on the bottom of the Bottom.
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.