Class Pen
Pen class. Represents pen, which used to draw in color and width.
Inheritance
System.Object
Pen
Namespace: Cosmos.System.Graphics
Assembly: Cosmos.System2.dll
Syntax
public class Pen : object
Constructors
| Improve this Doc View SourcePen(Color, Int32)
Create new instance of the Pen class.
Declaration
public Pen(Color color, int width = 1)
Parameters
Type | Name | Description |
---|---|---|
Color | color | Color. |
System.Int32 | width | Width. |
Properties
| Improve this Doc View SourceColor
Get and set pen color.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
Color |
Width
Get and set pen width.
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceToString()
To string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string value. |