Method DrawRectangles
DrawRectangles(Pen, ReadOnlySpan<RectD>)
Draws a series of rectangles specified by RectD structures.
public void DrawRectangles(Pen pen, ReadOnlySpan<RectD> rects)
Parameters
penPenPen that determines the color, width, and style of the outlines of the rectangles.
rectsReadOnlySpan<RectD>Array of RectD structures that represent the rectangles to draw.