New to Telerik UI for WinForms? Start a free 30-day trial

Converts between WPF and Spreadsheet colors by copying their 8-bit ARGB channels.

ScRGB values and color-profile data are not transferred.

Definition

Namespace:Telerik.WinControls.UI.WPFCommon.Helpers

Assembly:Telerik.WinControls.RadSpreadsheet.dll

Syntax:

C#
public static class ConverterHelper

Inheritance: objectConverterHelper

Methods

Creates a Spreadsheet color from the WPF color's alpha, red, green, and blue bytes.

C#
public static Color ConvertColor(Color color)
Parameters:colorColor

The WPF media color to convert.

Returns:

Color

A Spreadsheet color with the same ARGB channel values.

Creates a WPF color from the Spreadsheet color's alpha, red, green, and blue bytes.

C#
public static Color ConvertColor(Color color)
Parameters:colorColor

The Spreadsheet color to convert.

Returns:

Color

A WPF media color with the same ARGB channel values.