Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordChartScope

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
sealed

Edits one WordChart: its fluent methods and keywords, each returning this scope.

Inheritance

  • object
  • WordChartScope

Usage

Explore 18 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 2

Methods

public WordChartScope AltText(string? value) #

Sets WordChart.AltText: Gets or sets alternative text persisted in the native Word drawing.

Parameters

value string? required
The value.

Returns

WordChartScope The same scope.
public WordChartScope AxisTitleFormat(string fontFamily, OfficeLength fontSize, OfficeColor color) #

Defines font formatting for axis titles.

Parameters

fontFamily string required
Font family name.
fontSize OfficeIMO.OfficeLength required
Font size in points.
color OfficeIMO.OfficeColor required
Text color.

Returns

WordChartScope The same scope.
public WordChartScope BarDirection(WordChartBarDirection? value) #

Sets WordChart.BarDirection: Gets or sets the bar direction (row or column) for bar charts.

Parameters

value OfficeIMO.Word.WordChartBarDirection? required
The value.

Returns

WordChartScope The same scope.
public WordChartScope BarGrouping(WordChartBarGrouping? value) #

Sets WordChart.BarGrouping: Gets or sets the bar grouping mode for bar charts.

Parameters

value OfficeIMO.Word.WordChartBarGrouping? required
The value.

Returns

WordChartScope The same scope.
public WordChartScope CountAxis(uint? majorUnit = null) #

Sets count axes to start at zero, use whole-number labels and a positive integral tick interval.

Parameters

majorUnit uint? = null optional
Optional distance between ticks in whole counts. When omitted, a readable integral interval is selected from the cached values.

Returns

WordChartScope The same scope.
public WordChartScope Data(OfficeChartType chartKind, OfficeChartData data) #

Initializes or updates an editable native chart and its embedded worksheet from shared chart data. Existing chart and drawing titles, dimensions, and accessibility text are preserved. Use series render kinds and axis groups to describe combinations and secondary value axes.

Parameters

chartKind OfficeIMO.OfficeChartType required
The default chart family for series without their own render kind.
data OfficeIMO.Drawing.OfficeChartData required
Categories and series, including supported point and marker styles.

Returns

WordChartScope The same scope.
public WordChartScope Name(string? value) #

Sets WordChart.Name: Gets or sets the native drawing name without changing chart data.

Parameters

value string? required
The value.

Returns

WordChartScope The same scope.
public WordChartScope PaperStyle(bool percentageLabels = false, OfficeColor? titleColor = null) #

Uses percentage-only pie labels or count-only bar labels, and removes the chart background and frame.

Parameters

percentageLabels bool = false optional
True for percentage-only pie labels; false for numeric count labels.
titleColor OfficeIMO.OfficeColor? = null optional
Text color for the chart title.

Returns

WordChartScope The same scope.
public WordChartScope RadialLayout(OfficeChartRadialLayout layout) #

Sets geometry for an existing native two-dimensional pie or doughnut chart.

Parameters

layout OfficeIMO.Drawing.OfficeChartRadialLayout required
The value.

Returns

WordChartScope The same scope.
public WordChartScope RoundedCorners(bool value = true) #

Sets WordChart.RoundedCorners: Gets or sets whether the chart frame uses rounded corners.

Parameters

value bool = true optional
The value; true when omitted.

Returns

WordChartScope The same scope.
public WordChartScope SecondaryValueAxis(OfficeChartValueAxisLayout layout) #

Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.

Parameters

layout OfficeIMO.Drawing.OfficeChartValueAxisLayout required
The value.

Returns

WordChartScope The same scope.
public WordChartScope Size(OfficeLength width, OfficeLength? height = null) #

Sets the chart frame width and, when supplied, its height.

Parameters

width OfficeIMO.OfficeLength required
The value.
height OfficeIMO.OfficeLength? = null optional
The value.

Returns

WordChartScope The same scope.
public WordChartScope Title(string title) #

Set the title of the chart

Parameters

title string required
The value.

Returns

WordChartScope The same scope.
public WordChartScope WidthToPageContent(double fraction = 1, OfficeLength? height = null) #

Fits chart width to its owning section or cell, optionally adjusting its height.

Parameters

fraction double = 1 optional
The value.
height OfficeIMO.OfficeLength? = null optional
The value.

Returns

WordChartScope The same scope.
public WordChartScope XAxisTitle(string title) #

Sets the title displayed on the X axis.

Parameters

title string required
Axis title text.

Returns

WordChartScope The same scope.
public WordChartScope YAxisTitle(string title) #

Sets the title displayed on the Y axis.

Parameters

title string required
Axis title text.

Returns

WordChartScope The same scope.

Properties

public WordChart Model { get; } #

The WordChart this scope edits, for plain C# inside a lambda.