[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Converters.ColorToBrushConverter.Convert

Convert Method

Convert(object, Type, object, CultureInfo)

Converts various color types to a SolidColorBrush for display in the UI.

Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type Name Description
object value

The value produced by the binding source. Can be of type GrapeCity.Viewer.Common.Color, Color, or Color.

Type targetType

The type of the binding target property.

object parameter

The converter parameter to use.

CultureInfo culture

The culture to use in the converter.

Returns
Type Description
object

A SolidColorBrush representing the converted color, or null if the conversion cannot be performed.

Implements