Gets a collection of all charts contained in the main text of the document. The property value is an object of the type DataVisualization.ChartCollection. The collection can be used to get or to alter a chart's attributes and to add charts to or to remove charts.

Introduced: X13.


public DataVisualization.ChartCollection Charts { get; }
Public ReadOnly Property Charts() As DataVisualization.ChartCollection


The following examples describes how to use the 'TXTextControl.MainText.Charts' property by storing it in a variable of the type 'TXTextControl.DataVisualization.ChartCollection'.

TXTextControl.MainText mainText = textControl1.TextParts.GetMainText();
TXTextControl.DataVisualization.ChartCollection myMainTextChartColl = mainText.Charts;
Dim mainText As TXTextControl.MainText = TextControl1.TextParts.GetMainText()
Dim myMainTextChartColl As TXTextControl.DataVisualization.ChartCollection = mainText.Charts


Read only.