OfficeThemeChartStyle
OfficeIMO
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
- Property OfficeTheme.ChartStyle
- Method OfficeThemeChartStyle.With
Accepted by parameters 2
- Constructor OfficeTheme.OfficeTheme
- Method OfficeTheme.WithChartStyle
Constructors
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>
- axisFont OfficeIMO.OfficeThemeFont
- titleFont OfficeIMO.OfficeThemeFont
- axisFontSize OfficeIMO.OfficeLength
- titleFontSize OfficeIMO.OfficeLength
- gridlineColor OfficeIMO.OfficeColor
- showDataLabels bool
- showLegend bool
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>
- axisFont OfficeIMO.OfficeThemeFont
- titleFont OfficeIMO.OfficeThemeFont
- axisFontSize OfficeIMO.OfficeLength
- titleFontSize OfficeIMO.OfficeLength
- gridlineColor OfficeIMO.OfficeColor
- showDataLabels bool
- showLegend bool
- axisLineColor OfficeIMO.OfficeColor
- axisTextColor OfficeIMO.OfficeColor
- gridlineWidth OfficeIMO.OfficeLength
- lineWidth OfficeIMO.OfficeLength
- barGapPercent int
- markers OfficeIMO.Drawing.OfficeChartMarkerShape
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
- axisFont OfficeIMO.OfficeThemeFont? = null
- titleFont OfficeIMO.OfficeThemeFont? = null
- axisFontSize OfficeIMO.OfficeLength? = null
- titleFontSize OfficeIMO.OfficeLength? = null
- gridlineColor OfficeIMO.OfficeColor? = null
- showDataLabels bool? = null
- showLegend bool? = null
- axisLineColor OfficeIMO.OfficeColor? = null
- axisTextColor OfficeIMO.OfficeColor? = null
- gridlineWidth OfficeIMO.OfficeLength? = null
- lineWidth OfficeIMO.OfficeLength? = null
- barGapPercent int? = null
- markers OfficeIMO.Drawing.OfficeChartMarkerShape? = null
Returns
OfficeThemeChartStyleInherited Methods
Properties
public IReadOnlyList<OfficeColor> SeriesPalette { get; } #Gets immutable series colors, which may refer to theme roles.
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 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.