# ChartDataRelationDialog Constructor

> Creates a ChartDataRelationDialog object for the specified DocumentServer.DataSources.DataSourceManager.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 25.0
- **Namespace:** `TXTextControl.DocumentServer.Windows.Forms`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.Windows.Forms.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.Windows.Forms.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer.Windows.Forms > ChartDataRelationDialog Constructor
- **681 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/chartdatarelationdialog/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/chartdatarelationdialog/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/chartdatarelationdialog/constructor/llms-full.txt

---

### Description

Creates a ChartDataRelationDialog object for the specified [DocumentServer.DataSources.DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt).

### Syntax

```csharp
public ChartDataRelationDialog(ChartFrame chartFrame, DataSourceManager dataSourceManager);
```

```vbnet
Public Sub New(chartFrame As ChartFrame, dataSourceManager As DataSourceManager)
```

### Parameters

| Parameter | Description |
|---|---|
| chartFrame | Specifies a [ChartFrame](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-datavisualization/chartframe/llms-full.txt) object which contains the Chart which should be manipulated by the dialog. |
| dataSourceManager | Specifies the [DataSourceManager](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-datasources/datasourcemanager/llms-full.txt), which manages the current data source. |

### Examples

The following example creates a Chart Data Relation Dialog instance and configures its allow transparency setting for a document workflow.

```csharp
using TXTextControl.DocumentServer.Windows.Forms.ChartDataRelationDialog chartDataRelationDialog = new(new TXTextControl.DataVisualization.ChartFrame(new System.ComponentModel.Component()), new TXTextControl.DocumentServer.DataSources.DataSourceManager());
chartDataRelationDialog.AllowTransparency = true;
```

```vbnet
Dim chartDataRelationDialog As New TXTextControl.DocumentServer.Windows.Forms.ChartDataRelationDialog(New TXTextControl.DataVisualization.ChartFrame(New System.ComponentModel.Component()), New TXTextControl.DocumentServer.DataSources.DataSourceManager())
chartDataRelationDialog.AllowTransparency = True
```

---

## Nearby

- **Previous:** [ChartDataRelationDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/chartdatarelationdialog/llms-full.txt)
- **Next:** [DatabaseConnectionDialog Class](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver-windows-forms/databaseconnectiondialog/llms-full.txt)
