Method EditChart
EditChart(WordDocument, ChartRef, IConversionDiagnostics?)
Opens a chart for changes: each change is an edit of its own, undone as one.
public static ChartEditor EditChart(this WordDocument document, ChartRef chart, IConversionDiagnostics? diagnostics = null)
Parameters
documentWordDocumentThe document that holds the chart.
chartChartRefThe chart.
diagnosticsIConversionDiagnosticsWhere to say that a chart's embedded workbook was left as it was; null to say nothing.
Returns
- ChartEditor
The editor.
Exceptions
- ArgumentNullException
An argument is null.
- ArgumentException
The chart is not in
document.- InvalidOperationException
The chart has no part in the document, or no drawing model.