Class UIColorTypeExtensions
Contains extensions for the UIColorType type.
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.Wpf.Win19041.dll
Syntax
[CLSCompliant(false)]
public static class UIColorTypeExtensions
Methods
| Edit this page View SourceToColor(UIColorType)
Converts a UIColorType to a Color.
Declaration
public static Color ToColor(this UIColorType color)
Parameters
Type | Name | Description |
---|---|---|
UIColorType | color | Color to convert. |
Returns
Type | Description |
---|---|
Color | A new Color equivalent to the specified UIColorType. |
ToDrawingColor(UIColorType)
Converts a UIColorType to a Color.
Declaration
public static Color ToDrawingColor(this UIColorType color)
Parameters
Type | Name | Description |
---|---|---|
UIColorType | color | Color to convert. |
Returns
Type | Description |
---|---|
Color | A new Color equivalent to the specified UIColorType. |
ToMediaBrush(UIColorType)
Converts a UIColorType to a Brush.
Declaration
public static Brush ToMediaBrush(this UIColorType color)
Parameters
Type | Name | Description |
---|---|---|
UIColorType | color | Color to convert. |
Returns
Type | Description |
---|---|
Brush | A new Brush equivalent to the specified UIColorType. |
ToMediaColor(UIColorType)
Converts a UIColorType to a Color.
Declaration
public static Color ToMediaColor(this UIColorType color)
Parameters
Type | Name | Description |
---|---|---|
UIColorType | color | Color to convert. |
Returns
Type | Description |
---|---|
Color | A new Color equivalent to the specified UIColorType. |