# ColorConverter.ConvertBack Method

> Converts a System.Windows.Media.Color to a System.Drawing.Color value.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 16.0
- **Namespace:** `TXTextControl.WPF`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.WPF.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.WPF.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.WPF > ColorConverter.ConvertBack Method
- **641 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/colorconverter/convertback-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/colorconverter/convertback-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/colorconverter/convertback-method/llms-full.txt

---

### Description

Converts a System.Windows.Media.Color to a System.Drawing.Color value.

### Syntax

```csharp
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture);
```

```vbnet
Public Function ConvertBack(value As Object, targetType As Type, parameter As Object, culture As CultureInfo) As Object
```

### Parameters

| Parameter | Description |
|---|---|
| value | The System.Windows.Media.Color value that is produced by the binding target. |
| targetType | The type to convert to. It must be System.Drawing.Color. |
| parameter | This parameter is not used and can be set to null. |
| culture | The culture to use in the converter. |

### Return Value

The converted value. The method returns DependencyProperty.UnsetValue, if the conversion is not possible.

### Examples

The following example uses Convert Back in a focused Color Converter workflow.

```csharp
var result = colorConverter.ConvertBack("Approved", typeof(object), "Approved", System.Globalization.CultureInfo.GetCultureInfo("en-US"));
Console.WriteLine($"Convert Back result: {result}");
```

```vbnet
Dim result = colorConverter.ConvertBack("Approved", GetType(Object), "Approved", System.Globalization.CultureInfo.GetCultureInfo("en-US"))
Console.WriteLine($"Convert Back result: {result}")
```

---

## Nearby

- **Previous:** [ColorConverter.Convert Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/colorconverter/convert-method/llms-full.txt)
- **Next:** [CommentsDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/commentsdialog/llms-full.txt)
