Class RectangleDrawable
Implements background and border painting. Additionally it can paint image inside the rectangle.
public class RectangleDrawable : ImageDrawable, IBaseObject, IBaseDrawable
- Inheritance
-
RectangleDrawable
- Implements
Fields
- Border
Gets or sets border settings.
- Brush
Gets or sets brush to fill the rectangle.
- HasBorder
Gets or sets whether border is painted. Default is
true
.
- HasImage
Gets or sets whether image is painted. Default is
false
.
Properties
- OnlyVisible
Returns this object if it is visible; otherwise returns
null
.
Methods
- DefaultDrawBackAndBorder(Control, Graphics)
Performs default background and border painting.
- Draw(Control, Graphics)
Draws object on the canvas.