Class Pen
Assembly: Mapsui.dll
Syntax
Constructors
|
Edit this page
View Source
Pen()
Declaration
|
Edit this page
View Source
Pen(Color, double)
Declaration
public Pen(Color color, double width = 1)
Parameters
Properties
|
Edit this page
View Source
Color
Declaration
public Color Color { get; set; }
Property Value
|
Edit this page
View Source
DashArray
Array for drawing user defined dashes. Should be even and values are
multiplied by line width before drawing.
Declaration
public float[]? DashArray { get; set; }
Property Value
|
Edit this page
View Source
DashOffset
Offset for drawing user defined dashes
Declaration
public float DashOffset { get; set; }
Property Value
|
Edit this page
View Source
PenStrokeCap
Defines the end of a line
Declaration
public PenStrokeCap PenStrokeCap { get; set; }
Property Value
|
Edit this page
View Source
PenStyle
Style of the line (solid/dashed), which is drawn
Declaration
public PenStyle PenStyle { get; set; }
Property Value
|
Edit this page
View Source
StrokeJoin
Defines how line parts are join together
Declaration
public StrokeJoin StrokeJoin { get; set; }
Property Value
|
Edit this page
View Source
StrokeMiterLimit
Defines up to which width of line StrokeJoin is used
Declaration
public float StrokeMiterLimit { get; set; }
Property Value
|
Edit this page
View Source
Width
Declaration
public double Width { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(Pen?)
Declaration
protected bool Equals(Pen? pen)
Parameters
Type |
Name |
Description |
Pen |
pen |
|
Returns
|
Edit this page
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
Type |
Name |
Description |
object |
obj |
|
Returns
Overrides
|
Edit this page
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
|
Edit this page
View Source
operator ==(Pen?, Pen?)
Declaration
public static bool operator ==(Pen? pen1, Pen? pen2)
Parameters
Type |
Name |
Description |
Pen |
pen1 |
|
Pen |
pen2 |
|
Returns
|
Edit this page
View Source
operator !=(Pen?, Pen?)
Declaration
public static bool operator !=(Pen? pen1, Pen? pen2)
Parameters
Type |
Name |
Description |
Pen |
pen1 |
|
Pen |
pen2 |
|
Returns