Pen Structure
Specifies how lines are drawn by a Drawable.
NuGet/Assembly: Carmenta.Engine.5.17.0.nupkg (in the CECore assembly)
Syntax
public sealed class Pen : EngineValueTypeRemarks
A Pen holds a number of properties controlling line stroke, line color and line width. It is used when drawing directly onto a drawable from a custom visualizer or a custom symbol.
Inheritance Hierarchy
System.Object
EngineValueType
Pen
Platforms
Windows, Linux, Android
Pen Members
The Pen type has the following members.
Constructors
| Name | Description |
|---|---|
| Pen | Initializes a new instance of the Pen class |
Properties
| Name | Description |
|---|---|
| AntiAlias | Gets or sets a value that determines whether to draw lines with anti-aliasing. |
| Color | Gets or sets the color of the Pen. |
| Dashes | Gets the collection that holds the lengths of the dashes of the Pen. |
| LineCap | Gets or sets a value that determines the shape to use at the end of lines drawn with the Pen. |
| LineJoin | Gets or sets a value that determines the shape to use when connecting individual segments of lines drawn with the Pen. |
| ScalingStroke | Gets or sets a value that determines how the Dashes and Width properties are interpreted. |
| Gets a static Pen instance with a transparent color. | |
| Width | Gets or sets the width of the lines drawn with the Pen. |
Methods
| Name | Description |
|---|---|
| Equals | Overloaded. Determines whether two Pen objects have the same value. |
| GetHashCode | Returns the hash code for this Pen. |
| Determines whether two specified Pen objects have the same value. | |
| Determines whether two specified Pen objects have different values. | |
| ToString | Converts this Pen to a human readable string. |