Method Rectangle
Rectangle(Pen, Brush, RectD)
Calls FillRectangle(Brush, RectD) and than DrawRectangle(Pen, RectD).
public override void Rectangle(Pen pen, Brush brush, RectD rectangle)
Parameters
penPenThe Pen used to draw the rectangle.
brushBrushThe Brush used to fill the rectangle.
rectangleRectDThe RectD that bounds the rectangle.
Remarks
This method works faster than fill and then draw.