WordChartFluent
OfficeIMO.Word
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
- The instance.
- value string?
- 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
- The instance.
- fontFamily string
- Font family name.
- fontSize OfficeIMO.OfficeLength
- Font size in points.
- color OfficeIMO.OfficeColor
- 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
- The instance.
- value OfficeIMO.Word.WordChartBarDirection?
- 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
- The instance.
- value OfficeIMO.Word.WordChartBarGrouping?
- 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
- The instance.
- majorUnit uint? = null
- 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
- The instance.
- chartKind OfficeIMO.OfficeChartType
- The default chart family for series without their own render kind.
- data OfficeIMO.Drawing.OfficeChartData
- 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
- The instance.
- value string?
- 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
- The instance.
- percentageLabels bool = false
- True for percentage-only pie labels; false for numeric count labels.
- titleColor OfficeIMO.OfficeColor? = null
- 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
- The instance.
- layout OfficeIMO.Drawing.OfficeChartRadialLayout
- 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
- The instance.
- value bool = true
- 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
- The instance.
- layout OfficeIMO.Drawing.OfficeChartValueAxisLayout
- 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
- The instance.
- width OfficeIMO.OfficeLength
- The value.
- height OfficeIMO.OfficeLength? = null
- 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
- The instance.
- title string
- 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
- The instance.
- fraction double = 1
- The value.
- height OfficeIMO.OfficeLength? = null
- 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
- The instance.
- title string
- 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
- The instance.
- title string
- Axis title text.
Returns
TSelf The same instance.