TX Text Control .NET for Windows Forms

ChartDataRelationDialog Class

Class|Introduced in 25.0
Namespace
TXTextControl.DocumentServer.Windows.Forms
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXDocumentServer.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXDocumentServer.Windows.Forms.dll from the setup.
Inherits
  1. Form
  2. HighDpiForm
  3. ChartDataRelationDialog

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 : HighDpiForm

Examples

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;

Members

Constructors

ConstructorDescription
ChartDataRelationDialogCreates a ChartDataRelationDialog object for the specified DocumentServer.DataSources.DataSourceManager.

Methods

MethodDescription
ShowNot described in the reference. public void Show(IWin32Window owner);
ShowDialogNot described in the reference. public System.Windows.Forms.DialogResult ShowDialog();