Constructor Pen
Pen(Color, float, DashStyle)
Initializes a new instance of the Pen class with the specified Color, Width and DashStyle properties.
public Pen(Color color, float width, DashStyle dashStyle)
Parameters
colorColorwidthfloatA value indicating the width of this Pen, in device-independent units.
dashStyleDashStyleA style used for dashed lines drawn with this Pen.
Pen(Color, float, DashStyle, LineCap, LineJoin)
Initializes a new instance of the Pen class with the specified Color, Width and DashStyle properties.
public Pen(Color color, float width, DashStyle dashStyle, LineCap lineCap, LineJoin lineJoin)
Parameters
colorColorwidthfloatA value indicating the width of this Pen, in device-independent units.
dashStyleDashStyleA style used for dashed lines drawn with this Pen.
lineCapLineCapSpecifies the available cap styles with which a Pen object can end a line.
lineJoinLineJoinSpecifies how to join consecutive line or curve segments.
Pen(Color, float)
public Pen(Color color, float width)
Parameters
Pen(Color)
public Pen(Color color)
Parameters
Pen(Brush)
public Pen(Brush brush)
Parameters
Pen(Color, float, DashStyle, LineCap, LineJoin, bool)
Initializes a new instance of the Pen class with the specified color, width, dash style, line cap, and line join settings.
public Pen(Color color, float width, DashStyle dashStyle, LineCap lineCap, LineJoin lineJoin, bool immutable)
Parameters
colorColorThe color of the pen used for drawing.
widthfloatThe width of the pen, typically measured in device-independent units.
dashStyleDashStyleThe dash style of the pen, which determines the pattern of dashes and gaps.
lineCapLineCapThe style of the ends of lines drawn with the pen.
lineJoinLineJoinThe style of the joints between connected lines or segments.
immutableboolA value indicating whether the pen is immutable. If true, the pen cannot be modified after creation; otherwise, it can be modified.