[]
Defines a brush that has a solid color.
public sealed class ColorPen : Pen, IDisposable, ICloneable
This pen has the same funtion as SolidPen in painting. The width of SolidPen is always 1. This pen 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 |
---|---|
ColorPen(Color) | Initializes a new instance of the ColorPen class. |
Name | Description |
---|---|
Color | Gets or sets the color of the pen. |
Name | Description |
---|---|
Clone() | Creates an exact copy if this ColorPen object. |