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
    | Edit this page View Source

    Pen(Pen)

    Declaration
    public Pen(Pen pen)
    Parameters
    Type Name Description
    Pen pen

    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?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    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

    Extension Methods

    PenExtensions.IsVisible(Pen?)
    DisposableExtension.DisposeIfDisposable(object?)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX