Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordChartFluent

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Modifiers
static

The fluent methods of 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

Methods

public static TSelf AltText<TSelf>(TSelf wordChart, string? value) #

Sets WordChart.AltText: 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

// 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) #

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) #

Sets WordChart.BarDirection: 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

// C# initializer or property      // C# fluent
wordChart.BarDirection = value;    wordChart.BarDirection(value);
public static TSelf BarGrouping<TSelf>(TSelf wordChart, WordChartBarGrouping? value) #

Sets WordChart.BarGrouping: 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

// C# initializer or property     // C# fluent
wordChart.BarGrouping = value;    wordChart.BarGrouping(value);
public static TSelf CountAxis<TSelf>(TSelf wordChart, uint? majorUnit = null) #

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) #

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) #

Sets WordChart.Name: 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

// 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) #

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) #

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) #

Sets WordChart.RoundedCorners: 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

// C# initializer or property        // C# fluent
wordChart.RoundedCorners = value;    wordChart.RoundedCorners(value);
public static TSelf SecondaryValueAxis<TSelf>(TSelf wordChart, OfficeChartValueAxisLayout layout) #

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) #

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) #

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) #

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) #

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) #

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.