Search Results for

    Show / Hide Table of Contents

    Class Pen

    Inheritance
    object
    Pen
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.Styles
    Assembly: Mapsui.dll
    Syntax
    public class Pen

    Constructors

    | Edit this page View Source

    Pen()

    Declaration
    public Pen()
    | Edit this page View Source

    Pen(Color, double)

    Declaration
    public Pen(Color color, double width = 1)
    Parameters
    Type Name Description
    Color color
    double width

    Properties

    | Edit this page View Source

    Color

    Color of line

    Declaration
    public Color Color { get; set; }
    Property Value
    Type Description
    Color
    | 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
    Type Description
    float[]
    | Edit this page View Source

    DashOffset

    Offset for drawing user defined dashes

    Declaration
    public float DashOffset { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    PenStrokeCap

    Defines the end of a line

    Declaration
    public PenStrokeCap PenStrokeCap { get; set; }
    Property Value
    Type Description
    PenStrokeCap
    | Edit this page View Source

    PenStyle

    Style of the line (solid/dashed), which is drawn

    Declaration
    public PenStyle PenStyle { get; set; }
    Property Value
    Type Description
    PenStyle
    | Edit this page View Source

    StrokeJoin

    Defines how line parts are join together

    Declaration
    public StrokeJoin StrokeJoin { get; set; }
    Property Value
    Type Description
    StrokeJoin
    | Edit this page View Source

    StrokeMiterLimit

    Defines up to which width of line StrokeJoin is used

    Declaration
    public float StrokeMiterLimit { get; set; }
    Property Value
    Type Description
    float
    | Edit this page View Source

    Width

    Width of line

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    double

    Methods

    | Edit this page View Source

    Equals(Pen?)

    Declaration
    protected bool Equals(Pen? pen)
    Parameters
    Type Name Description
    Pen pen
    Returns
    Type Description
    bool
    | Edit this page View Source

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    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
    Type Description
    bool
    | 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
    Type Description
    bool
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX