In This Article

ColorExtensions Class

Provides extension methods for the Avalonia.Media.Color type.

public static class ColorExtensions
Inheritance:
object object

Methods

ToUIColor(Color)

Creates a new UIColor initialized from the RGB color.

public static UIColor ToUIColor(this Color color)
Parameter Type Description
color Color

The RGB color.

Returns

UIColor:

A new instance of UIColor representative of the RGB color.

Inherited Members