TX Text Control for Windows Forms supports the insertion of chart controls of the type System.Windows.Forms.DataVisualization.Charting.Chart. This control is part of the .net framework since version 4, but can be added to prior versions. A chart can be positioned like an image or textframe, either geometrically or as a single character. Geometrically its position can either be relative to a paragraph to which it is anchored or relative to the complete document. The ChartFrame class handles the positioning of the chart in the document. A chart frame is always associated with a chart control which handles the appearance and the data of the chart. All charts in a document are contained in a ChartCollection. The collection can also be used to add charts to or to remove charts from the document. The chart collection can be obtained from a TextControl or ServerTextControl through the Charts property. The TextControl.ChartLayoutDialog method opens a dialog box which offers layout settings like positioning, size and text distances. A chart can be saved with the TX Text Control and the RTF format and is reconstructed during a loading process. With other formats the chart image is saved. If a document with charts is loaded on a system where no chart controls are installed, the chart's image is inserted.


Class Description
TXTextControl.DataVisualization.ChartCollection An instance of the ChartCollection class contains all charts in a document represented through objects of the type DataVisualization.ChartFrame.
TXTextControl.DataVisualization.ChartEventArgs The ChartEventArgs class provides data for all events that occur with charts.
TXTextControl.DataVisualization.ChartFrame An instance of the ChartFrame class represents a chart and its layout in a Text Control document.


Property Description
TXTextControl.ServerTextControl.Charts Gets a collection of all charts in a document.
TXTextControl.TextControl.Charts Gets a collection of all charts contained in the text part with the input focus.


Method Description
TXTextControl.TextControl.ChartLayoutDialog Invokes the built-in dialog box for alter the layout settings, the size and the text distances of a chart.
TXTextControl.TextControl.OnChartClicked Raises the ChartClicked event.
TXTextControl.TextControl.OnChartCreated Raises the ChartCreated event.
TXTextControl.TextControl.OnChartDeleted Raises the ChartDeleted event.
TXTextControl.TextControl.OnChartDeselected Raises the ChartDeselected event.
TXTextControl.TextControl.OnChartDoubleClicked Raises the ChartDoubleClicked event.
TXTextControl.TextControl.OnChartMoved Raises the ChartMoved event.
TXTextControl.TextControl.OnChartRightClicked Raises the ChartRightClicked event.
TXTextControl.TextControl.OnChartSelected Raises the ChartSelected event.
TXTextControl.TextControl.OnChartSized Raises the ChartSized event.


Event Description
TXTextControl.ServerTextControl.ChartCreated Occurs when a new chart has been created.
TXTextControl.ServerTextControl.ChartDeleted Occurs when a chart has been deleted.
TXTextControl.TextControl.ChartClicked Occurs when a chart has been clicked on.
TXTextControl.TextControl.ChartCreated Occurs when a new chart has been created.
TXTextControl.TextControl.ChartDeleted Occurs when a chart has been deleted.
TXTextControl.TextControl.ChartDeselected Occurs when a chart has been deselected.
TXTextControl.TextControl.ChartDoubleClicked Occurs when a chart has been doubleclicked on.
TXTextControl.TextControl.ChartMoved Occurs when a chart has been moved.
TXTextControl.TextControl.ChartRightClicked Occurs when a chart has been clicked on with the right mouse button.
TXTextControl.TextControl.ChartSelected Occurs when a chart has been selected.
TXTextControl.TextControl.ChartSized Occurs when a chart has been sized.