Search Results for

    Show / Hide Table of Contents

    Class Drawable

    Base class for all drawables like polyline, polygon and circle

    Inheritance
    object
    Drawable
    Circle
    Polygon
    Polyline
    Circle
    Polygon
    Polyline
    Implements
    IFeatureProvider
    INotifyPropertyChanged
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.UI.Objects
    Assembly: Mapsui.UI.Forms.dll
    Syntax
    public class Drawable : IFeatureProvider, INotifyPropertyChanged

    Properties

    | Edit this page View Source

    Feature

    Mapsui Feature belonging to this drawable

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

    IsClickable

    Is this drawable clickable

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

    Label

    Label of drawable

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

    MaxVisible

    MaxVisible for drawable in resolution of Mapsui (smaller values are higher zoom levels)

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

    MinVisible

    MinVisible for drawable in resolution of Mapsui (smaller values are higher zoom levels)

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

    StrokeColor

    StrokeColor for drawable

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

    StrokeWidth

    StrokeWidth of drawable in pixel

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

    Tag

    Object for free use

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

    ZIndex

    ZIndex of this drawable

    Declaration
    public int ZIndex { get; set; }
    Property Value
    Type Description
    int

    Methods

    | Edit this page View Source

    OnPropertyChanged(string?)

    Declaration
    protected virtual void OnPropertyChanged(string? propertyName = null)
    Parameters
    Type Name Description
    string propertyName
    | Edit this page View Source

    SetField<T>(ref T, T, string?)

    Declaration
    protected bool SetField<T>(ref T field, T value, string? propertyName = null)
    Parameters
    Type Name Description
    T field
    T value
    string propertyName
    Returns
    Type Description
    bool
    Type Parameters
    Name Description
    T

    Events

    | Edit this page View Source

    Clicked

    Event called, if this drawable is clicked an IsClickable is true

    Declaration
    public event EventHandler<DrawableClickedEventArgs>? Clicked
    Event Type
    Type Description
    EventHandler<DrawableClickedEventArgs>
    | Edit this page View Source

    PropertyChanged

    Declaration
    public event PropertyChangedEventHandler? PropertyChanged
    Event Type
    Type Description
    PropertyChangedEventHandler

    Implements

    IFeatureProvider
    INotifyPropertyChanged
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX