Table of Contents

Method SetKind

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

SetKind(ChartKind, ChartGrouping, bool)

Changes the chart's kind: the plot and its axes are written again for the kind, with the series' names, categories and values; what else the old plot stated of its series (their colours, labels, markers) is not carried to the new kind, as Word's Change Chart Type gives the new kind's defaults.

public DocumentEdit SetKind(ChartKind kind, ChartGrouping grouping = ChartGrouping.Clustered, bool horizontal = false)

Parameters

kind ChartKind

The new kind.

grouping ChartGrouping

The grouping of a bar, line or area chart.

horizontal bool

Whether a bar chart's bars lie horizontally.

Returns

DocumentEdit

The edit.