# WordChartScope

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

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

sealed

Edits one [WordChart](/api/word/officeimo-word-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.

### Returned or exposed by 16

- Method [WordChartScope.AltText](/api/word/officeimo-word-wordchartscope/#method-alttext-string)
- Method [WordChartScope.AxisTitleFormat](/api/word/officeimo-word-wordchartscope/#method-axistitleformat-string-officeimo-officelength-officeimo-officecolor)
- Method [WordChartScope.BarDirection](/api/word/officeimo-word-wordchartscope/#method-bardirection-nullable-officeimo-word-wordchartbardirection)
- Method [WordChartScope.BarGrouping](/api/word/officeimo-word-wordchartscope/#method-bargrouping-nullable-officeimo-word-wordchartbargrouping)
- Method [WordChartScope.CountAxis](/api/word/officeimo-word-wordchartscope/#method-countaxis-nullable-system-uint32)
- Method [WordChartScope.Data](/api/word/officeimo-word-wordchartscope/#method-data-officeimo-officecharttype-officeimo-drawing-officechartdata)
- Method [WordChartScope.Name](/api/word/officeimo-word-wordchartscope/#method-name-string)
- Method [WordChartScope.PaperStyle](/api/word/officeimo-word-wordchartscope/#method-paperstyle-boolean-nullable-officeimo-officecolor)
- Method [WordChartScope.RadialLayout](/api/word/officeimo-word-wordchartscope/#method-radiallayout-officeimo-drawing-officechartradiallayout)
- Method [WordChartScope.RoundedCorners](/api/word/officeimo-word-wordchartscope/#method-roundedcorners-boolean)
- Method [WordChartScope.SecondaryValueAxis](/api/word/officeimo-word-wordchartscope/#method-secondaryvalueaxis-officeimo-drawing-officechartvalueaxislayout)
- Method [WordChartScope.Size](/api/word/officeimo-word-wordchartscope/#method-size-officeimo-officelength-nullable-officeimo-officelength)
- Method [WordChartScope.Title](/api/word/officeimo-word-wordchartscope/#method-title-string)
- Method [WordChartScope.WidthToPageContent](/api/word/officeimo-word-wordchartscope/#method-widthtopagecontent-double-nullable-officeimo-officelength)
- Method [WordChartScope.XAxisTitle](/api/word/officeimo-word-wordchartscope/#method-xaxistitle-string)
- Method [WordChartScope.YAxisTitle](/api/word/officeimo-word-wordchartscope/#method-yaxistitle-string)

### Accepted by parameters 2

- Method [WordDocumentScope.Chart](/api/word/officeimo-word-worddocumentscope/#method-chart-officeimo-officecharttype-officeimo-drawing-officechartdata-officeimo-officechartoptions-action-officeimo-word-wordchartscope) parameter `configure`
- Method [WordParagraphScope.Chart](/api/word/officeimo-word-wordparagraphscope/#method-chart-string-boolean-nullable-officeimo-officelength-nullable-officeimo-officelength-action-officeimo-word-wordchartscope) parameter `configure`

Filter members 

Show inherited

## Methods

`public WordChartScope AltText(string? value)` [#](#method-alttext-string)

Sets [WordChart.AltText](/api/word/officeimo-word-wordchart/): 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)` [#](#method-axistitleformat-string-officeimo-officelength-officeimo-officecolor)

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)` [#](#method-bardirection-nullable-officeimo-word-wordchartbardirection)

Sets [WordChart.BarDirection](/api/word/officeimo-word-wordchart/): 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)` [#](#method-bargrouping-nullable-officeimo-word-wordchartbargrouping)

Sets [WordChart.BarGrouping](/api/word/officeimo-word-wordchart/): 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)` [#](#method-countaxis-nullable-system-uint32)

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)` [#](#method-data-officeimo-officecharttype-officeimo-drawing-officechartdata)

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)` [#](#method-name-string)

Sets [WordChart.Name](/api/word/officeimo-word-wordchart/): 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)` [#](#method-paperstyle-boolean-nullable-officeimo-officecolor)

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)` [#](#method-radiallayout-officeimo-drawing-officechartradiallayout)

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)` [#](#method-roundedcorners-boolean)

Sets [WordChart.RoundedCorners](/api/word/officeimo-word-wordchart/): 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)` [#](#method-secondaryvalueaxis-officeimo-drawing-officechartvalueaxislayout)

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)` [#](#method-size-officeimo-officelength-nullable-officeimo-officelength)

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)` [#](#method-title-string)

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)` [#](#method-widthtopagecontent-double-nullable-officeimo-officelength)

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)` [#](#method-xaxistitle-string)

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)` [#](#method-yaxistitle-string)

Sets the title displayed on the Y axis.

Parameters

**title string required**

Axis title text.

Returns

`WordChartScope` The same scope.

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public WordChart Model { get; }` [#](#property-model)

The [WordChart](/api/word/officeimo-word-wordchart/) this scope edits, for plain C# inside a lambda.

<!-- PowerForge markdown artifact sha256:7A8B36E918951F40AB532B457C4520F749E85EA74D4781CDC2B5F63497EE9C42 -->
