Pen
Pen constructor (1 of 4)
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 constructor (2 of 4)
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 constructor (3 of 4)
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 constructor (4 of 4)
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