Class ColorExtensions
Inheritance
Inherited Members
Namespace: Tizen.UIExtensions.ElmSharp
Assembly: Tizen.UIExtensions.ElmSharp.dll
Syntax
public static class ColorExtensions
Methods
ToCommon(ElmSharp.Color)
Creates an instance of Tizen.UIExtensions.Common.Color class based on provided ElmSharp.Color instance
Declaration
public static Color ToCommon(this ElmSharp.Color c)
Parameters
Type | Name | Description |
---|---|---|
ElmSharp.Color | c | The ElmSharp.Color instance which will be converted to a Tizen.UIExtensions.Common.Color |
Returns
Type | Description |
---|---|
Color | Tizen.UIExtensions.Common.Color instance representing a color which corresponds to the provided ElmSharp.Color |
ToHex(ElmSharp.Color)
Returns a string representing the provided ElmSharp.Color instance in a hexagonal notation (#RRGGBBAA)
Declaration
public static string ToHex(this ElmSharp.Color c)
Parameters
Type | Name | Description |
---|---|---|
ElmSharp.Color | c | The ElmSharp.Color class instance which will be serialized |
Returns
Type | Description |
---|---|
System.String | string value containing the encoded color |
ToNative(Color)
Creates an instance of ElmSharp.Color class based on provided Tizen.UIExtensions.Common.Color instance
Declaration
public static ElmSharp.Color ToNative(this Color c)
Parameters
Type | Name | Description |
---|---|---|
Color | c | The Tizen.UIExtensions.Common.Color instance which will be converted to a ElmSharp.Color |
Returns
Type | Description |
---|---|
ElmSharp.Color | ElmSharp.Color instance representing a color which corresponds to the provided Tizen.UIExtensions.Common.Color |