[]
Defines a brush that has a solid color.
public sealed class ColorBrush : Brush, IDisposable, ICloneable
This brush has the same funtion as SolidBrush in painting. This brush will not consume gdi handle. In other word, the Handle property is always IntPtr.Zero. So it can not be used to DeviceContext.
Name | Description |
---|---|
ColorBrush(Color) | Initializes a new instance of the ColorBrush class. |
Name | Description |
---|---|
Color | Gets or sets the color of the brush. |
Name | Description |
---|---|
Clone() | Creates an exact copy if this ColorBrush object. |