Class ColorExtensions
Inherited Members
Namespace: Mapsui.UI.Maui.Extensions
Assembly: Mapsui.UI.Maui.dll
Syntax
public static class ColorExtensions
Methods
| Edit this page View SourceToMapsui(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 |
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 |
ToNative(Color)
Declaration
public static Color ToNative(this Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| Color | color |
Returns
| Type | Description |
|---|---|
| Color |