Table of Contents

Method EditChart

Namespace
DocWright.Word.Editing
Assembly
DocWright.Word.dll

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

document WordDocument

The document that holds the chart.

chart ChartRef

The chart.

diagnostics IConversionDiagnostics

Where 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.