[]
Draw the special rectangle by using the current pen of the device context and fill the rectangle by using the current brush of the device context.
public virtual void PaintRectangle(Rectangle rectangle)
Type | Name | Description |
---|---|---|
Rectangle | rectangle | A Rectangle indicate the rectangle to paint. |
The rectangle that is drawn excludes the bottom and right edges. If a HollowPen is used, the dimensions of the rectangle are 1 pixel less in height and 1 pixel less in width.
Type | Condition |
---|---|
SystemErrorException |