[]
Represents a chart data table.
public interface IDataTable
Public Interface IDataTable
worksheet.Range["A1:C3"].Value = new object[,] {
{"Item", "Estimated", "Actual"},
{"Income", 63300, 57450},
{"Expenses", 54500, 49630}
};
IChart chart = worksheet.Shapes.AddChart(ChartType.ColumnClustered, 20, 20, 300, 200).Chart;
chart.SeriesCollection.Add(worksheet.Range["A1:C3"]);
chart.HasDataTable = true;
IDataTable dataTable = chart.DataTable;
| Name | Description |
|---|---|
| Font | Gets the IFontFormat object for the chart data table. Use the returned font format to read or modify font settings for the text displayed in the data table. |
| Format | Gets the format of the chart data table. Use the returned IChartFormat object to access the fill and line formatting settings of the chart data table. |
| HasBorderHorizontal | Gets whether the chart data table displays horizontal cell borders.
This property indicates whether horizontal border lines are shown between
rows in the chart data table. The default value is |
| HasBorderOutline | Gets whether the chart data table has outline borders.
The default value is |
| HasBorderVertical | Gets whether the chart data table has vertical cell borders.
The default value is |
| Parent | Gets the parent IChart of the data table. Use this property to access the chart that owns the current data table. |
| ShowLegendKey | Gets whether legend keys are shown in the chart data table.
This property indicates whether the chart data table displays a legend key for each
series. The default value is |
| Name | Description |
|---|---|
| Delete() | Deletes this chart data table. After this method is called, the data table is removed from its parent IChart. |