Search Results for

    Show / Hide Table of Contents

    Class ColorExtensions

    Inheritance
    object
    ColorExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Mapsui.UI.Maui.Extensions
    Assembly: Mapsui.UI.Maui.dll
    Syntax
    public static class ColorExtensions

    Methods

    | Edit this page View Source

    ToMapsui(Color)

    Convert Microsoft.Maui.Graphics.Color to Mapsui.Style.Color

    Declaration
    public static Color ToMapsui(this Color color)
    Parameters
    Type Name Description
    Color color

    Color in Microsoft.Maui.Graphics.Color format

    Returns
    Type Description
    Color

    Color in Mapsui.Styles.Color format

    | Edit this page View Source

    ToMaui(Color)

    Convert Mapsui.Styles.Color to Microsoft.Maui.Graphics.Color

    Declaration
    public static Color ToMaui(this Color color)
    Parameters
    Type Name Description
    Color color

    Color in Mapsui format

    Returns
    Type Description
    Color

    Color in Microsoft.Maui.Graphics format

    | Edit this page View Source

    ToNative(Color)

    Declaration
    [Obsolete("Use ToMaui instead", true)]
    public static Color ToNative(this Color color)
    Parameters
    Type Name Description
    Color color
    Returns
    Type Description
    Color
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX