ChartDataRelationDialog Class
- Namespace
TXTextControl.DocumentServer. Windows. Forms
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXDocumentServer.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXDocumentServer.from the setup.Windows. Forms. dll
- Inherits
- Form
- HighDpiForm
- Chart
Data Relation Dialog
Description
The ChartDataRelationDialog class allows the user to prepare a ChartFrame object to display data from a data relation defined in a mail merge data source. The dialog lets the user select the parent and child tables which form the data relation and two data columns in the child table which are used as the x-axis label text and the actual data. The chart is manipulated by this dialog as follows: First, all existing chart areas except one are removed. Then all existing "series" except one which belongs to that chart area are removed. Afterwards the ChartFrame object is named after the child table in the selected data relation so data can be assigned properly during the mail merge process. Then the remaining chart area is named after the child table column containing the axis label text and the series inside that chart area is named after the child table column containing the actual data. The ChartDataRelationDialog is a modal dialog box which must be shown with the EditDataRelationsDialog.ShowDialog method.
Syntax
public class ChartDataRelationDialog : HighDpiFormPublic Class ChartDataRelationDialog
Inherits HighDpiFormExamples
The following example creates a Chart Data Relation Dialog instance and configures its allow transparency setting for a document workflow.
using TXTextControl.DocumentServer.Windows.Forms.ChartDataRelationDialog chartDataRelationDialog = new(new TXTextControl.DataVisualization.ChartFrame(new System.ComponentModel.Component()), new TXTextControl.DocumentServer.DataSources.DataSourceManager());
chartDataRelationDialog.AllowTransparency = true;Dim chartDataRelationDialog As New TXTextControl.DocumentServer.Windows.Forms.ChartDataRelationDialog(New TXTextControl.DataVisualization.ChartFrame(New System.ComponentModel.Component()), New TXTextControl.DocumentServer.DataSources.DataSourceManager())
chartDataRelationDialog.AllowTransparency = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| ChartDataRelationDialog | Creates a ChartDataRelationDialog object for the specified DocumentServer.DataSources.DataSourceManager. |
Methods
| Method | Description |
|---|---|
| Show | Not described in the reference. public void Show(IWin32Window owner); |
| ShowDialog | Not described in the reference. public System.Windows.Forms.DialogResult ShowDialog(); |