Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PowerPointChart

OfficeIMO.PowerPoint

Namespace
OfficeIMO.PowerPoint
Assembly
OfficeIMO.PowerPoint
Source revision
0eef6a5756b9 with working tree changes

Represents a chart on a slide.

Inheritance

Usage

Explore 110 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 110

Methods

public PowerPointChart ClearCategoryAxisGridlines() #

Clears category axis gridlines.

public PowerPointChart ClearCategoryAxisLabelTextStyle() #

Clears the category axis label text style.

public PowerPointChart ClearCategoryAxisTitleTextStyle() #

Clears the category axis title text style.

public PowerPointChart ClearDataLabels() #

Removes shared data label settings from all supported chart types in the current plot area.

public PowerPointChart ClearLegendTextStyle() #

Clears custom legend text styling while preserving the legend.

public PowerPointChart ClearScatterXAxisDisplayUnits() #

Clears display units from the scatter chart X-axis.

public PowerPointChart ClearScatterXAxisGridlines() #

Clears scatter chart X-axis gridlines.

public PowerPointChart ClearScatterXAxisLabelTextStyle() #

Clears the scatter chart X-axis label text style.

public PowerPointChart ClearScatterXAxisTitleTextStyle() #

Clears the scatter chart X-axis title text style.

public PowerPointChart ClearScatterYAxisDisplayUnits() #

Clears display units from the scatter chart Y-axis.

public PowerPointChart ClearScatterYAxisGridlines() #

Clears scatter chart Y-axis gridlines.

public PowerPointChart ClearScatterYAxisLabelTextStyle() #

Clears the scatter chart Y-axis label text style.

public PowerPointChart ClearScatterYAxisTitleTextStyle() #

Clears the scatter chart Y-axis title text style.

ClearSeriesDataLabelForPoint 2 overloads
public PowerPointChart ClearSeriesDataLabelForPoint(int seriesIndex, int pointIndex) #

Removes point-level data label overrides for a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
public PowerPointChart ClearSeriesDataLabelForPoint(string seriesName, int pointIndex, bool ignoreCase = true) #

Removes point-level data label overrides for a specific point by series name.

Parameters

seriesName string required
pointIndex int required
ignoreCase bool = true optional
ClearSeriesDataLabels 2 overloads
public PowerPointChart ClearSeriesDataLabels(int seriesIndex) #

Removes series-level data label settings by series index.

Parameters

seriesIndex int required
public PowerPointChart ClearSeriesDataLabels(string seriesName, bool ignoreCase = true) #

Removes series-level data label settings by series name.

Parameters

seriesName string required
ignoreCase bool = true optional
ClearSeriesTrendline 2 overloads
public PowerPointChart ClearSeriesTrendline(int seriesIndex) #

Removes trendlines from a chart series by index.

Parameters

seriesIndex int required
public PowerPointChart ClearSeriesTrendline(string seriesName, bool ignoreCase = true) #

Removes trendlines from a chart series by name.

Parameters

seriesName string required
ignoreCase bool = true optional
public PowerPointChart ClearTitle() #

Removes the chart title.

public PowerPointChart ClearTitleTextStyle() #

Clears custom chart title text styling while preserving the title text.

public PowerPointChart ClearValueAxisDisplayUnits() #

Clears display units from the value axis.

public PowerPointChart ClearValueAxisGridlines() #

Clears value axis gridlines.

public PowerPointChart ClearValueAxisLabelTextStyle() #

Clears the value axis label text style.

public PowerPointChart ClearValueAxisTitleTextStyle() #

Clears the value axis title text style.

CreateDataSummary 2 overloads
public static string CreateDataSummary(OfficeChartType chartKind, OfficeChartData data) #

Creates a deterministic plain-text summary suitable for accessibility review or sidecar output.

Parameters

chartKind OfficeIMO.OfficeChartType required
data OfficeIMO.Drawing.OfficeChartData required

Returns

string
public string CreateDataSummary() #

Creates a deterministic plain-text data summary from the current native chart.

Returns

string
public PowerPointChart HideLegend() #

Hides the chart legend.

public PowerPointImportedChartReport InspectImportedContent() #

Inspects native family, typed-edit support, and export fidelity.

public PowerPointChart SaveDataSummary(string filePath) #

Saves the current chart's plain-text data summary as a UTF-8 sidecar.

Parameters

filePath string required
public PowerPointChart SetAccessibility(string alternativeText, string? dataSummary = null, bool includeDataSummary = true) #

Applies native alternative text and optionally includes a plain-text data summary.

Parameters

alternativeText string required
dataSummary string? = null optional
includeDataSummary bool = true optional
public PowerPointChart SetBubbleSizing(uint scalePercent, OfficeChartBubbleSizeMode sizeMode) #

Sets the native bubble scale and whether bubble values represent area or width.

Parameters

scalePercent uint required
Bubble diameter scale from zero through 300 percent.
sizeMode OfficeIMO.Drawing.OfficeChartBubbleSizeMode required
Whether bubble values represent area or width.
public PowerPointChart SetCategoryAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #

Sets where the category axis crosses the value axis.

Parameters

crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required
crossesAt double? = null optional
public PowerPointChart SetCategoryAxisGridlines(bool showMajor = true, bool showMinor = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Sets category axis gridlines visibility and optional styling.

Parameters

showMajor bool = true optional
showMinor bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetCategoryAxisLabelRotation(double rotationDegrees) #

Sets the category axis label rotation in degrees (-90..90).

Parameters

rotationDegrees double required
public PowerPointChart SetCategoryAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the category axis label text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetCategoryAxisNumberFormat(string formatCode, bool sourceLinked = false) #

Sets the category axis number format.

Parameters

formatCode string required
sourceLinked bool = false optional
public PowerPointChart SetCategoryAxisReverseOrder(bool reverseOrder = true) #

Sets the category axis orientation (normal or reversed order).

Parameters

reverseOrder bool = true optional
public PowerPointChart SetCategoryAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position) #

Sets the category axis tick label position.

Parameters

position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition required
public PowerPointChart SetCategoryAxisTitle(string title) #

Sets the category axis title.

Parameters

title string required
public PowerPointChart SetCategoryAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the category axis title text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetChartAreaStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #

Sets chart area fill/line styling.

Parameters

fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
public PowerPointChart SetDataLabelCallouts(bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Enables callout-style labels by positioning labels outside with leader lines.

Parameters

enabled bool = true optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetDataLabelLeaderLines(bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Configures data label leader lines for all chart labels.

Parameters

showLeaderLines bool = true optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetDataLabelNumberFormat(string formatCode, bool sourceLinked = false) #

Sets the shared data label number format for all supported chart types.

Parameters

formatCode string required
sourceLinked bool = false optional
public PowerPointChart SetDataLabelPosition(OfficeChartDataLabelPosition position) #

Sets the shared data label position for all supported chart types.

Parameters

position OfficeIMO.Drawing.OfficeChartDataLabelPosition required
public PowerPointChart SetDataLabels(bool showValue = true, bool showCategoryName = false, bool showSeriesName = false, bool showLegendKey = false, bool showPercent = false) #

Configures data labels for all supported chart series.

Parameters

showValue bool = true optional
showCategoryName bool = false optional
showSeriesName bool = false optional
showLegendKey bool = false optional
showPercent bool = false optional
public PowerPointChart SetDataLabelSeparator(string? separator) #

Sets the data label separator for all chart labels.

Parameters

separator string? required
public PowerPointChart SetDataLabelShapeStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #

Sets data label shape styling for all chart labels.

Parameters

fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
public PowerPointChart SetDataLabelTemplate(PowerPointChartDataLabelTemplate template) #

Applies a reusable data label template to all supported chart labels.

Parameters

template OfficeIMO.PowerPoint.PowerPointChartDataLabelTemplate required
public PowerPointChart SetDataLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets data label text style for all chart labels.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetDataPointStyle(int seriesIndex, uint pointIndex, OfficeChartPointStyle? style) #

Replaces a point's fill/outline overrides. Null restores series/theme inheritance.

Parameters

seriesIndex int required
pointIndex uint required
style OfficeIMO.Drawing.OfficeChartPointStyle? required
public PowerPointChart SetLegend(OfficeChartLegendPosition position, bool overlay = false) #

Sets the legend position and visibility.

Parameters

position OfficeIMO.Drawing.OfficeChartLegendPosition required
overlay bool = false optional
public PowerPointChart SetLegendTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the legend text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetLineChartGrouping(PowerPointChartGrouping grouping) #

Sets the grouping mode for a line chart.

Parameters

grouping OfficeIMO.PowerPoint.PowerPointChartGrouping required
Line chart grouping value.

Returns

PowerPointChart The current chart for fluent configuration.
public PowerPointChart SetPlotAreaStyle(OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #

Sets plot area fill/line styling.

Parameters

fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
public PowerPointChart SetRadialLayout(OfficeChartRadialLayout layout) #

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

Parameters

layout OfficeIMO.Drawing.OfficeChartRadialLayout required
public PowerPointChart SetScatterXAxisCrossing(OfficeChartAxisCrossingPosition? crosses = null, double? crossesAt = null) #

Sets where the scatter X-axis crosses the Y-axis.

Parameters

crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition? = null optional
crossesAt double? = null optional
SetScatterXAxisDisplayUnits 4 overloads
public PowerPointChart SetScatterXAxisDisplayUnits(OfficeChartDisplayUnit unit, bool showLabel = true) #

Sets display units for the scatter chart X-axis.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
showLabel bool = true optional
public PowerPointChart SetScatterXAxisDisplayUnits(OfficeChartDisplayUnit unit, string labelText, bool showLabel = true) #

Sets display units for the scatter chart X-axis with custom label text.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
labelText string required
showLabel bool = true optional
public PowerPointChart SetScatterXAxisDisplayUnits(double customUnit, bool showLabel = true) #

Sets custom display units for the scatter chart X-axis.

Parameters

customUnit double required
showLabel bool = true optional
public PowerPointChart SetScatterXAxisDisplayUnits(double customUnit, string labelText, bool showLabel = true) #

Sets custom display units for the scatter chart X-axis with custom label text.

Parameters

customUnit double required
labelText string required
showLabel bool = true optional
public PowerPointChart SetScatterXAxisGridlines(bool showMajor = true, bool showMinor = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Sets scatter chart X-axis gridlines visibility and optional styling.

Parameters

showMajor bool = true optional
showMinor bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetScatterXAxisLabelRotation(double rotationDegrees) #

Sets the scatter chart X-axis label rotation in degrees (-90..90).

Parameters

rotationDegrees double required
public PowerPointChart SetScatterXAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the scatter chart X-axis label text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetScatterXAxisNumberFormat(string formatCode, bool sourceLinked = false) #

Sets the scatter chart X-axis number format.

Parameters

formatCode string required
sourceLinked bool = false optional
public PowerPointChart SetScatterXAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null) #

Sets scatter chart X-axis scale (bottom value axis).

Parameters

minimum double? = null optional
maximum double? = null optional
majorUnit double? = null optional
minorUnit double? = null optional
reverseOrder bool? = null optional
logScale bool? = null optional
logBase double? = null optional
public PowerPointChart SetScatterXAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position) #

Sets the scatter chart X-axis tick label position.

Parameters

position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition required
public PowerPointChart SetScatterXAxisTitle(string title) #

Sets the scatter chart X-axis title.

Parameters

title string required
public PowerPointChart SetScatterXAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the scatter chart X-axis title text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetScatterYAxisCrossing(OfficeChartAxisCrossingPosition? crosses = null, double? crossesAt = null) #

Sets where the scatter Y-axis crosses the X-axis.

Parameters

crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition? = null optional
crossesAt double? = null optional
SetScatterYAxisDisplayUnits 4 overloads
public PowerPointChart SetScatterYAxisDisplayUnits(OfficeChartDisplayUnit unit, bool showLabel = true) #

Sets display units for the scatter chart Y-axis.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
showLabel bool = true optional
public PowerPointChart SetScatterYAxisDisplayUnits(OfficeChartDisplayUnit unit, string labelText, bool showLabel = true) #

Sets display units for the scatter chart Y-axis with custom label text.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
labelText string required
showLabel bool = true optional
public PowerPointChart SetScatterYAxisDisplayUnits(double customUnit, bool showLabel = true) #

Sets custom display units for the scatter chart Y-axis.

Parameters

customUnit double required
showLabel bool = true optional
public PowerPointChart SetScatterYAxisDisplayUnits(double customUnit, string labelText, bool showLabel = true) #

Sets custom display units for the scatter chart Y-axis with custom label text.

Parameters

customUnit double required
labelText string required
showLabel bool = true optional
public PowerPointChart SetScatterYAxisGridlines(bool showMajor = true, bool showMinor = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Sets scatter chart Y-axis gridlines visibility and optional styling.

Parameters

showMajor bool = true optional
showMinor bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetScatterYAxisLabelRotation(double rotationDegrees) #

Sets the scatter chart Y-axis label rotation in degrees (-90..90).

Parameters

rotationDegrees double required
public PowerPointChart SetScatterYAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the scatter chart Y-axis label text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetScatterYAxisNumberFormat(string formatCode, bool sourceLinked = false) #

Sets the scatter chart Y-axis number format.

Parameters

formatCode string required
sourceLinked bool = false optional
public PowerPointChart SetScatterYAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, bool? logScale = null, double? logBase = null) #

Sets scatter chart Y-axis scale (left value axis).

Parameters

minimum double? = null optional
maximum double? = null optional
majorUnit double? = null optional
minorUnit double? = null optional
reverseOrder bool? = null optional
logScale bool? = null optional
logBase double? = null optional
public PowerPointChart SetScatterYAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position) #

Sets the scatter chart Y-axis tick label position.

Parameters

position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition required
public PowerPointChart SetScatterYAxisTitle(string title) #

Sets the scatter chart Y-axis title.

Parameters

title string required
public PowerPointChart SetScatterYAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the scatter chart Y-axis title text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetSecondaryValueAxis(OfficeChartValueAxisLayout layout) #

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

Parameters

layout OfficeIMO.Drawing.OfficeChartValueAxisLayout required
SetSeriesDataLabelCallouts 2 overloads
public PowerPointChart SetSeriesDataLabelCallouts(int seriesIndex, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Enables callout-style labels for a series by index.

Parameters

seriesIndex int required
enabled bool = true optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetSeriesDataLabelCallouts(string seriesName, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #

Enables callout-style labels for a series by name.

Parameters

seriesName string required
enabled bool = true optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
ignoreCase bool = true optional
SetSeriesDataLabelCalloutsForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelCalloutsForPoint(int seriesIndex, int pointIndex, bool enabled = true, OfficeChartDataLabelPosition? position = null) #

Enables callout-style labels for a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
enabled bool = true optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
public PowerPointChart SetSeriesDataLabelCalloutsForPoint(string seriesName, int pointIndex, bool enabled = true, OfficeChartDataLabelPosition? position = null, bool ignoreCase = true) #

Enables callout-style labels for a specific point by series name.

Parameters

seriesName string required
pointIndex int required
enabled bool = true optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
ignoreCase bool = true optional
SetSeriesDataLabelForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelForPoint(int seriesIndex, int pointIndex, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false) #

Configures a single data label point by series index and point index.

Parameters

seriesIndex int required
pointIndex int required
showValue bool? = null optional
showCategoryName bool? = null optional
showSeriesName bool? = null optional
showLegendKey bool? = null optional
showPercent bool? = null optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
numberFormat string? = null optional
sourceLinked bool = false optional
public PowerPointChart SetSeriesDataLabelForPoint(string seriesName, int pointIndex, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false, bool ignoreCase = true) #

Configures a single data label point by series name and point index.

Parameters

seriesName string required
pointIndex int required
showValue bool? = null optional
showCategoryName bool? = null optional
showSeriesName bool? = null optional
showLegendKey bool? = null optional
showPercent bool? = null optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
numberFormat string? = null optional
sourceLinked bool = false optional
ignoreCase bool = true optional
SetSeriesDataLabelLeaderLines 2 overloads
public PowerPointChart SetSeriesDataLabelLeaderLines(int seriesIndex, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Configures data label leader lines for a series by index.

Parameters

seriesIndex int required
showLeaderLines bool = true optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetSeriesDataLabelLeaderLines(string seriesName, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #

Configures data label leader lines for a series by name.

Parameters

seriesName string required
showLeaderLines bool = true optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
ignoreCase bool = true optional
SetSeriesDataLabels 2 overloads
public PowerPointChart SetSeriesDataLabels(int seriesIndex, bool showValue = true, bool showCategoryName = false, bool showSeriesName = false, bool showLegendKey = false, bool showPercent = false, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false) #

Configures data labels for a single series by index.

Parameters

seriesIndex int required
showValue bool = true optional
showCategoryName bool = false optional
showSeriesName bool = false optional
showLegendKey bool = false optional
showPercent bool = false optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
numberFormat string? = null optional
sourceLinked bool = false optional
public PowerPointChart SetSeriesDataLabels(string seriesName, bool showValue = true, bool showCategoryName = false, bool showSeriesName = false, bool showLegendKey = false, bool showPercent = false, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool sourceLinked = false, bool ignoreCase = true) #

Configures data labels for a single series by name.

Parameters

seriesName string required
showValue bool = true optional
showCategoryName bool = false optional
showSeriesName bool = false optional
showLegendKey bool = false optional
showPercent bool = false optional
position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null optional
numberFormat string? = null optional
sourceLinked bool = false optional
ignoreCase bool = true optional
SetSeriesDataLabelSeparator 2 overloads
public PowerPointChart SetSeriesDataLabelSeparator(int seriesIndex, string? separator) #

Sets the data label separator for a series by index.

Parameters

seriesIndex int required
separator string? required
public PowerPointChart SetSeriesDataLabelSeparator(string seriesName, string? separator, bool ignoreCase = true) #

Sets the data label separator for a series by name.

Parameters

seriesName string required
separator string? required
ignoreCase bool = true optional
SetSeriesDataLabelSeparatorForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelSeparatorForPoint(int seriesIndex, int pointIndex, string? separator) #

Sets the data label separator for a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
separator string? required
public PowerPointChart SetSeriesDataLabelSeparatorForPoint(string seriesName, int pointIndex, string? separator, bool ignoreCase = true) #

Sets the data label separator for a specific point by series name.

Parameters

seriesName string required
pointIndex int required
separator string? required
ignoreCase bool = true optional
SetSeriesDataLabelShapeStyle 2 overloads
public PowerPointChart SetSeriesDataLabelShapeStyle(int seriesIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #

Sets data label shape styling for a series by index.

Parameters

seriesIndex int required
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
public PowerPointChart SetSeriesDataLabelShapeStyle(string seriesName, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false, bool ignoreCase = true) #

Sets data label shape styling for a series by name.

Parameters

seriesName string required
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
ignoreCase bool = true optional
SetSeriesDataLabelShapeStyleForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelShapeStyleForPoint(int seriesIndex, int pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #

Sets data label shape styling for a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
public PowerPointChart SetSeriesDataLabelShapeStyleForPoint(string seriesName, int pointIndex, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false, bool ignoreCase = true) #

Sets data label shape styling for a specific point by series name.

Parameters

seriesName string required
pointIndex int required
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
noFill bool = false optional
noLine bool = false optional
ignoreCase bool = true optional
SetSeriesDataLabelTemplate 2 overloads
public PowerPointChart SetSeriesDataLabelTemplate(int seriesIndex, PowerPointChartDataLabelTemplate template) #

Applies a reusable data label template to a series by index.

Parameters

seriesIndex int required
template OfficeIMO.PowerPoint.PowerPointChartDataLabelTemplate required
public PowerPointChart SetSeriesDataLabelTemplate(string seriesName, PowerPointChartDataLabelTemplate template, bool ignoreCase = true) #

Applies a reusable data label template to a series by name.

Parameters

seriesName string required
template OfficeIMO.PowerPoint.PowerPointChartDataLabelTemplate required
ignoreCase bool = true optional
SetSeriesDataLabelTemplateForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelTemplateForPoint(int seriesIndex, int pointIndex, PowerPointChartDataLabelTemplate template) #

Applies a reusable data label template to a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
template OfficeIMO.PowerPoint.PowerPointChartDataLabelTemplate required
public PowerPointChart SetSeriesDataLabelTemplateForPoint(string seriesName, int pointIndex, PowerPointChartDataLabelTemplate template, bool ignoreCase = true) #

Applies a reusable data label template to a specific point by series name.

Parameters

seriesName string required
pointIndex int required
template OfficeIMO.PowerPoint.PowerPointChartDataLabelTemplate required
ignoreCase bool = true optional
SetSeriesDataLabelTextStyle 2 overloads
public PowerPointChart SetSeriesDataLabelTextStyle(int seriesIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets data label text style for a series by index.

Parameters

seriesIndex int required
fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetSeriesDataLabelTextStyle(string seriesName, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, bool ignoreCase = true) #

Sets data label text style for a series by name.

Parameters

seriesName string required
fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
ignoreCase bool = true optional
SetSeriesDataLabelTextStyleForPoint 2 overloads
public PowerPointChart SetSeriesDataLabelTextStyleForPoint(int seriesIndex, int pointIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets data label text style for a specific point by series index.

Parameters

seriesIndex int required
pointIndex int required
fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetSeriesDataLabelTextStyleForPoint(string seriesName, int pointIndex, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, bool ignoreCase = true) #

Sets data label text style for a specific point by series name.

Parameters

seriesName string required
pointIndex int required
fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
ignoreCase bool = true optional
SetSeriesFillColor 2 overloads
public PowerPointChart SetSeriesFillColor(int seriesIndex, OfficeColor color) #

Sets the fill color for a chart series by index.

Parameters

seriesIndex int required
color OfficeIMO.OfficeColor required
public PowerPointChart SetSeriesFillColor(string seriesName, OfficeColor color, bool ignoreCase = true) #

Sets the fill color for a chart series by name.

Parameters

seriesName string required
color OfficeIMO.OfficeColor required
ignoreCase bool = true optional
SetSeriesLineColor 2 overloads
public PowerPointChart SetSeriesLineColor(int seriesIndex, OfficeColor color, OfficeLength? width = null) #

Sets the line color for a chart series by index.

Parameters

seriesIndex int required
color OfficeIMO.OfficeColor required
width OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetSeriesLineColor(string seriesName, OfficeColor color, OfficeLength? width = null, bool ignoreCase = true) #

Sets the line color for a chart series by name.

Parameters

seriesName string required
color OfficeIMO.OfficeColor required
width OfficeIMO.OfficeLength? = null optional
ignoreCase bool = true optional
SetSeriesMarker 2 overloads
public PowerPointChart SetSeriesMarker(int seriesIndex, OfficeChartMarkerShape style, OfficeLength? size = null, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Sets the marker style for a chart series by index.

Parameters

seriesIndex int required
style OfficeIMO.Drawing.OfficeChartMarkerShape required
size OfficeIMO.OfficeLength? = null optional
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetSeriesMarker(string seriesName, OfficeChartMarkerShape style, OfficeLength? size = null, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #

Sets the marker style for a chart series by name.

Parameters

seriesName string required
style OfficeIMO.Drawing.OfficeChartMarkerShape required
size OfficeIMO.OfficeLength? = null optional
fillColor OfficeIMO.OfficeColor? = null optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
ignoreCase bool = true optional
SetSeriesTrendline 2 overloads
public PowerPointChart SetSeriesTrendline(int seriesIndex, OfficeChartTrendlineType type, int? order = null, int? period = null, double? forward = null, double? backward = null, double? intercept = null, bool displayEquation = false, bool displayRSquared = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Adds or replaces a trendline for a chart series by index.

Parameters

seriesIndex int required
type OfficeIMO.Drawing.OfficeChartTrendlineType required
order int? = null optional
period int? = null optional
forward double? = null optional
backward double? = null optional
intercept double? = null optional
displayEquation bool = false optional
displayRSquared bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetSeriesTrendline(string seriesName, OfficeChartTrendlineType type, int? order = null, int? period = null, double? forward = null, double? backward = null, double? intercept = null, bool displayEquation = false, bool displayRSquared = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool ignoreCase = true) #

Adds or replaces a trendline for a chart series by name.

Parameters

seriesName string required
type OfficeIMO.Drawing.OfficeChartTrendlineType required
order int? = null optional
period int? = null optional
forward double? = null optional
backward double? = null optional
intercept double? = null optional
displayEquation bool = false optional
displayRSquared bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
ignoreCase bool = true optional
public PowerPointChart SetTitle(string title) #

Sets the chart title text.

Parameters

title string required
public PowerPointChart SetTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the chart title text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetValueAxisCrossBetween(OfficeChartAxisCrossBetween between) #

Sets how the value axis crosses between categories.

Parameters

between OfficeIMO.Drawing.OfficeChartAxisCrossBetween required
public PowerPointChart SetValueAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #

Sets where the value axis crosses the category axis.

Parameters

crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition required
crossesAt double? = null optional
SetValueAxisDisplayUnits 4 overloads
public PowerPointChart SetValueAxisDisplayUnits(OfficeChartDisplayUnit unit, bool showLabel = true) #

Sets display units for the value axis.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
showLabel bool = true optional
public PowerPointChart SetValueAxisDisplayUnits(OfficeChartDisplayUnit unit, string labelText, bool showLabel = true) #

Sets display units for the value axis with custom label text.

Parameters

unit OfficeIMO.Drawing.OfficeChartDisplayUnit required
labelText string required
showLabel bool = true optional
public PowerPointChart SetValueAxisDisplayUnits(double customUnit, bool showLabel = true) #

Sets custom display units for the value axis.

Parameters

customUnit double required
showLabel bool = true optional
public PowerPointChart SetValueAxisDisplayUnits(double customUnit, string labelText, bool showLabel = true) #

Sets custom display units for the value axis with custom label text.

Parameters

customUnit double required
labelText string required
showLabel bool = true optional
public PowerPointChart SetValueAxisGridlines(bool showMajor = true, bool showMinor = false, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #

Sets value axis gridlines visibility and optional styling.

Parameters

showMajor bool = true optional
showMinor bool = false optional
lineColor OfficeIMO.OfficeColor? = null optional
lineWidth OfficeIMO.OfficeLength? = null optional
public PowerPointChart SetValueAxisLabelRotation(double rotationDegrees) #

Sets the value axis label rotation in degrees (-90..90).

Parameters

rotationDegrees double required
public PowerPointChart SetValueAxisLabelTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the value axis label text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public PowerPointChart SetValueAxisNumberFormat(string formatCode, bool sourceLinked = false) #

Sets the value axis number format.

Parameters

formatCode string required
sourceLinked bool = false optional
public PowerPointChart SetValueAxisScale(double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, double? logBase = null, bool? reverseOrder = null, bool? logScale = null) #

Sets value axis scale parameters.

Parameters

minimum double? = null optional
maximum double? = null optional
majorUnit double? = null optional
minorUnit double? = null optional
logBase double? = null optional
reverseOrder bool? = null optional
logScale bool? = null optional
public PowerPointChart SetValueAxisTickLabelPosition(OfficeChartAxisTickLabelPosition position) #

Sets the value axis tick label position.

Parameters

position OfficeIMO.Drawing.OfficeChartAxisTickLabelPosition required
public PowerPointChart SetValueAxisTitle(string title) #

Sets the value axis title.

Parameters

title string required
public PowerPointChart SetValueAxisTitleTextStyle(OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #

Sets the value axis title text style.

Parameters

fontSize OfficeIMO.OfficeLength? = null optional
bold bool? = null optional
italic bool? = null optional
color OfficeIMO.OfficeColor? = null optional
fontFamily string? = null optional
public bool TryGetOfficeSnapshot(out OfficeChartSnapshot snapshot) #

Tries to expose the current chart through the shared dependency-free chart contract.

Parameters

snapshot OfficeIMO.Drawing.OfficeChartSnapshot required

Returns

bool
public PowerPointChart UpdateData(OfficeChartData data) #

Updates the native chart from the shared OfficeIMO chart contract.

Parameters

data OfficeIMO.Drawing.OfficeChartData required
public PowerPointChart UpdateImportedData(OfficeChartData data) #

Updates series names, categories, values, formulas, caches, and the embedded workbook of an advanced imported chart without rebuilding its native chart group.

Parameters

data OfficeIMO.Drawing.OfficeChartData required

Properties

public OfficeChartRadialLayout RadialLayout { get; } #

Native pie rotation and doughnut hole geometry, with native defaults when unspecified.