Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OfficeThemeChartStyle

OfficeIMO

Namespace
OfficeIMO
Assembly
OfficeIMO.Core
Source revision
e163ccb36643 with working tree changes
Modifiers
sealed

Chart authoring tokens, separate from legacy renderer overrides.

Inheritance

  • object
  • OfficeThemeChartStyle

Usage

Explore 4 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 2

Accepted by parameters 2

Constructors

OfficeThemeChartStyle 2 overloads
public OfficeThemeChartStyle(IReadOnlyList<OfficeColor> seriesPalette, OfficeThemeFont axisFont, OfficeThemeFont titleFont, OfficeLength axisFontSize, OfficeLength titleFontSize, OfficeColor gridlineColor, bool showDataLabels, bool showLegend) #

Creates immutable chart authoring tokens with a muted axis, 0.5 pt gridlines, 2 pt lines, a 60 % bar gap and no markers.

Parameters

seriesPalette System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeColor> required
axisFont OfficeIMO.OfficeThemeFont required
titleFont OfficeIMO.OfficeThemeFont required
axisFontSize OfficeIMO.OfficeLength required
titleFontSize OfficeIMO.OfficeLength required
gridlineColor OfficeIMO.OfficeColor required
showDataLabels bool required
showLegend bool required
public OfficeThemeChartStyle(IReadOnlyList<OfficeColor> seriesPalette, OfficeThemeFont axisFont, OfficeThemeFont titleFont, OfficeLength axisFontSize, OfficeLength titleFontSize, OfficeColor gridlineColor, bool showDataLabels, bool showLegend, OfficeColor axisLineColor, OfficeColor axisTextColor, OfficeLength gridlineWidth, OfficeLength lineWidth, int barGapPercent, OfficeChartMarkerShape markers) #

Creates immutable chart authoring tokens, including axis, stroke, gap and marker details.

Parameters

seriesPalette System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeColor> required
axisFont OfficeIMO.OfficeThemeFont required
titleFont OfficeIMO.OfficeThemeFont required
axisFontSize OfficeIMO.OfficeLength required
titleFontSize OfficeIMO.OfficeLength required
gridlineColor OfficeIMO.OfficeColor required
showDataLabels bool required
showLegend bool required
axisLineColor OfficeIMO.OfficeColor required
axisTextColor OfficeIMO.OfficeColor required
gridlineWidth OfficeIMO.OfficeLength required
lineWidth OfficeIMO.OfficeLength required
barGapPercent int required
markers OfficeIMO.Drawing.OfficeChartMarkerShape required

Methods

public OfficeThemeChartStyle With(IReadOnlyList<OfficeColor>? seriesPalette = null, OfficeThemeFont? axisFont = null, OfficeThemeFont? titleFont = null, OfficeLength? axisFontSize = null, OfficeLength? titleFontSize = null, OfficeColor? gridlineColor = null, bool? showDataLabels = null, bool? showLegend = null, OfficeColor? axisLineColor = null, OfficeColor? axisTextColor = null, OfficeLength? gridlineWidth = null, OfficeLength? lineWidth = null, int? barGapPercent = null, OfficeChartMarkerShape? markers = null) #

Returns a copy with the supplied replacements; omitted values are retained.

Parameters

seriesPalette System.Collections.Generic.IReadOnlyList<OfficeIMO.OfficeColor>? = null optional
axisFont OfficeIMO.OfficeThemeFont? = null optional
titleFont OfficeIMO.OfficeThemeFont? = null optional
axisFontSize OfficeIMO.OfficeLength? = null optional
titleFontSize OfficeIMO.OfficeLength? = null optional
gridlineColor OfficeIMO.OfficeColor? = null optional
showDataLabels bool? = null optional
showLegend bool? = null optional
axisLineColor OfficeIMO.OfficeColor? = null optional
axisTextColor OfficeIMO.OfficeColor? = null optional
gridlineWidth OfficeIMO.OfficeLength? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
barGapPercent int? = null optional
markers OfficeIMO.Drawing.OfficeChartMarkerShape? = null optional

Properties

public IReadOnlyList<OfficeColor> SeriesPalette { get; } #

Gets immutable series colors, which may refer to theme roles.

public OfficeThemeFont AxisFont { get; } #

Gets axis label fonts.

public OfficeThemeFont TitleFont { get; } #

Gets chart title fonts.

public OfficeLength AxisFontSize { get; } #

Gets axis label size.

public OfficeLength TitleFontSize { get; } #

Gets chart title size.

public OfficeColor GridlineColor { get; } #

Gets gridline color.

public bool ShowDataLabels { get; } #

Gets whether value labels are shown.

public bool ShowLegend { get; } #

Gets whether the series legend is shown.

public OfficeColor AxisLineColor { get; } #

Gets the category axis line colour; the value axis has no line.

public OfficeColor AxisTextColor { get; } #

Gets the axis label colour.

public OfficeLength GridlineWidth { get; } #

Gets the gridline stroke width.

public OfficeLength LineWidth { get; } #

Gets the stroke width of line series.

public int BarGapPercent { get; } #

Gets the gap between column and bar groups, as a percentage of the bar width.

public OfficeChartMarkerShape Markers { get; } #

Gets the marker shape for line series; OfficeChartMarkerShape.None shows markers only on series with fewer than three points.