Search Results for

    Show / Hide Table of Contents

    Class Brush

    Inheritance
    object
    Brush
    Implements
    IHasImage
    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 Brush : IHasImage

    Constructors

    | Edit this page View Source

    Brush()

    Declaration
    public Brush()
    | Edit this page View Source

    Brush(Brush)

    Declaration
    public Brush(Brush brush)
    Parameters
    Type Name Description
    Brush brush
    | Edit this page View Source

    Brush(Color)

    Declaration
    public Brush(Color color)
    Parameters
    Type Name Description
    Color color

    Properties

    | Edit this page View Source

    Background

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

    Color

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

    FillStyle

    This identifies how the brush is applied, works for Color not for bitmaps

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

    Image

    Declaration
    public Image? Image { get; set; }
    Property Value
    Type Description
    Image

    Methods

    | Edit this page View Source

    Equals(Brush?)

    Declaration
    protected bool Equals(Brush? brush)
    Parameters
    Type Name Description
    Brush brush
    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 ==(Brush?, Brush?)

    Declaration
    public static bool operator ==(Brush? brush1, Brush? brush2)
    Parameters
    Type Name Description
    Brush brush1
    Brush brush2
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(Brush?, Brush?)

    Declaration
    public static bool operator !=(Brush? brush1, Brush? brush2)
    Parameters
    Type Name Description
    Brush brush1
    Brush brush2
    Returns
    Type Description
    bool

    Implements

    IHasImage

    Extension Methods

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