Skip to main content

SolidBrush

Namespace: System.Drawing

Assembly: System.Drawing.Managed (4.0.0.0)

Defines a brush of a single color. Brushes are used to fill graphics shapes, such as rectangles, ellipses, pies, polygons, and paths. This class cannot be inherited.

public class SolidBrush : Brush

Constructors​

Instance member SolidBrush(color)​

Initializes a new instance of the SolidBrush class.

NameTypeDescription
colorColorA Color structure that represents the color of this brush.

Properties​

Instance member Color​

Color: Gets or sets the color of this SolidBrush object.

Methods​

Instance member Clone()​

Returns: Object.