Pen.Pen
Pen(Color)
Initializes a new instance of the Pen
class with the specified color.
Parameter | Type | Description |
---|
color | Color | A Color structure that indicates the color of this Pen . |
See Also
Pen(Color, float)
Initializes a new instance of the Pen
class with the specified Color
and Width
properties.
public Pen(Color color, float width)
Parameter | Type | Description |
---|
color | Color | A Color structure that indicates the color of this Pen . |
width | Single | A value indicating the width of this Pen . |
See Also
Pen(Brush)
Initializes a new instance of the Pen
class with the specified Brush
.
Parameter | Type | Description |
---|
brush | Brush | A Brush that determines the fill properties of this Pen . |
Exceptions
exception | condition |
---|
ArgumentNullException | brush is null. |
See Also
Pen(Brush, float)
Initializes a new instance of the Pen
class with the specified Brush
and Width
.
public Pen(Brush brush, float width)
Parameter | Type | Description |
---|
brush | Brush | A Brush that determines the characteristics of this Pen . |
width | Single | The width of the new Pen . |
Exceptions
exception | condition |
---|
ArgumentNullException | brush is null. |
See Also