# WordChartFluent

The fluent methods of WordChart, generated from its public properties: A property-named method sets a property and a singular-named method adds…

Class 

`OfficeIMO.Word`

**Namespace**

`OfficeIMO.Word`

**Assembly**

`OfficeIMO.Word`

**Modifiers**

static

The fluent methods of [WordChart](/api/word/officeimo-word-wordchart/), generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

## Inheritance

- object
- WordChartFluent

Filter members 

Show inherited

## Methods

`public static TSelf AltText<TSelf>(TSelf wordChart, string? value)` [#](#method-alttext-string)

Sets [WordChart.AltText](/api/word/officeimo-word-wordchart/): Gets or sets alternative text persisted in the native Word drawing.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordChart.AltText = value;       wordChart.AltText(value);
```

`public static TSelf AxisTitleFormat<TSelf>(TSelf wordChart, string fontFamily, OfficeLength fontSize, OfficeColor color)` [#](#method-axistitleformat-string-officeimo-officelength-officeimo-officecolor)

Defines font formatting for axis titles.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**fontFamily string required**

Font family name.

**fontSize OfficeIMO.OfficeLength required**

Font size in points.

**color OfficeIMO.OfficeColor required**

Text color.

Returns

`TSelf` The same instance.

`public static TSelf BarDirection<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**value OfficeIMO.Word.WordChartBarDirection? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property      // C# fluent
wordChart.BarDirection = value;    wordChart.BarDirection(value);
```

`public static TSelf BarGrouping<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**value OfficeIMO.Word.WordChartBarGrouping? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property     // C# fluent
wordChart.BarGrouping = value;    wordChart.BarGrouping(value);
```

`public static TSelf CountAxis<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**majorUnit uint? = null optional**

Optional distance between ticks in whole counts. When omitted, a readable integral interval is selected from the cached values.

Returns

`TSelf` The same instance.

`public static TSelf Data<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**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

`TSelf` The same instance.

`public static TSelf Name<TSelf>(TSelf wordChart, string? value)` [#](#method-name-string)

Sets [WordChart.Name](/api/word/officeimo-word-wordchart/): Gets or sets the native drawing name without changing chart data.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**value string? required**

The value.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property    // C# fluent
wordChart.Name = value;          wordChart.Name(value);
```

`public static TSelf PaperStyle<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**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

`TSelf` The same instance.

`public static TSelf RadialLayout<TSelf>(TSelf wordChart, OfficeChartRadialLayout layout)` [#](#method-radiallayout-officeimo-drawing-officechartradiallayout)

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

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**layout OfficeIMO.Drawing.OfficeChartRadialLayout required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf RoundedCorners<TSelf>(TSelf wordChart, bool value = true)` [#](#method-roundedcorners-boolean)

Sets [WordChart.RoundedCorners](/api/word/officeimo-word-wordchart/): Gets or sets whether the chart frame uses rounded corners.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

`TSelf` The same instance.

Examples

```csharp
// C# initializer or property        // C# fluent
wordChart.RoundedCorners = value;    wordChart.RoundedCorners(value);
```

`public static TSelf SecondaryValueAxis<TSelf>(TSelf wordChart, OfficeChartValueAxisLayout layout)` [#](#method-secondaryvalueaxis-officeimo-drawing-officechartvalueaxislayout)

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

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**layout OfficeIMO.Drawing.OfficeChartValueAxisLayout required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Size<TSelf>(TSelf wordChart, OfficeLength width, OfficeLength? height = null)` [#](#method-size-officeimo-officelength-nullable-officeimo-officelength)

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

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**width OfficeIMO.OfficeLength required**

The value.

**height OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf Title<TSelf>(TSelf wordChart, string title)` [#](#method-title-string)

Set the title of the chart

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**title string required**

The value.

Returns

`TSelf` The same instance.

`public static TSelf WidthToPageContent<TSelf>(TSelf wordChart, 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.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**fraction double = 1 optional**

The value.

**height OfficeIMO.OfficeLength? = null optional**

The value.

Returns

`TSelf` The same instance.

`public static TSelf XAxisTitle<TSelf>(TSelf wordChart, string title)` [#](#method-xaxistitle-string)

Sets the title displayed on the X axis.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**title string required**

Axis title text.

Returns

`TSelf` The same instance.

`public static TSelf YAxisTitle<TSelf>(TSelf wordChart, string title)` [#](#method-yaxistitle-string)

Sets the title displayed on the Y axis.

Type Parameters

**TSelf**

Parameters

**wordChart TSelf required**

The instance.

**title string required**

Axis title text.

Returns

`TSelf` The same instance.

## 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?`

<!-- PowerForge markdown artifact sha256:F6F7196D0E9140CD6F8B18570C5F8CCDCD012B728C2BDF3695E42183AD8A5841 -->
