Method DrawBackground
DrawBackground(IPainter, Rectangle, Color, Color)
Draws the control background within the specified rectangle with current theme.
public static void DrawBackground(IPainter painter, Rectangle rect, Color startColor, Color endColor)
Parameters
painter
IPainterSpecifies
IPainter
object used to draw text and graphic primitives.rect
RectangleThe Rectangle that represents the dimensions of the control.
startColor
ColorSpecifies start background color for gradient background painting when no theme is available.
endColor
ColorSpecifies end background color for gradient background painting when no theme is available.