[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.ColorPen

ColorPen Class

Defines a brush that has a solid color.

Inheritance
ColorPen
Implements
Namespace: C1.Framework.Drawing.Gdi
Assembly: C1.Win.Input.8.dll
Syntax
public sealed class ColorPen : Pen, IDisposable, ICloneable
Remarks

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.

Constructors

Name Description
ColorPen(Color)

Initializes a new instance of the ColorPen class.

Properties

Name Description
Color

Gets or sets the color of the pen.

Methods

Name Description
Clone()

Creates an exact copy if this ColorPen object.