ExcelChartFluent
OfficeIMO.Excel
The fluent methods of ExcelChart, 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
- ExcelChartFluent
Methods
public static ExcelChart AltText(ExcelChart excelChart, string description, string? title = null) #Sets the chart's alternative text and optional title, and clears any decorative flag.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- description string
- The value.
- title string? = null
- The value.
public static ExcelChart CategoryAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the category axis crosses the value axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisGridlines(ExcelChart excelChart, bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis gridlines visibility and optional styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- showMajor bool? = null
- The value.
- showMinor bool? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisLabelRotation(ExcelChart excelChart, double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis label rotation in degrees (-90..90).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- rotationDegrees double
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisLabelTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis label text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisLine(ExcelChart excelChart, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis line visibility and optional styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- noLine bool = false
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked = false) #Sets the category axis number format.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- formatCode string
- The value.
- sourceLinked bool = false
- The value.
public static ExcelChart CategoryAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the category axis number format for the selected axis group.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- formatCode string
- The value.
- sourceLinked bool
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public static ExcelChart CategoryAxisReverseOrder(ExcelChart excelChart, bool reverseOrder = true, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis orientation (normal or reversed order).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- reverseOrder bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart CategoryAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis scale parameters for line, bar, column, and area charts.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- minimum double? = null
- Optional minimum category-axis value.
- maximum double? = null
- Optional maximum category-axis value.
- majorUnit double? = null
- Optional major unit spacing.
- minorUnit double? = null
- Optional minor unit spacing.
- reverseOrder bool? = null
- Optional category order direction.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- Primary or secondary category axis.
public static ExcelChart CategoryAxisTitle(ExcelChart excelChart, string title) #Sets the category axis title.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- title string
- The value.
public static ExcelChart CategoryAxisTitle(ExcelChart excelChart, string title, OfficeChartAxisGroup axisGroup) #Sets the category axis title for the selected axis group.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- title string
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public static ExcelChart CategoryAxisTitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis title text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ChartAreaStyle(ExcelChart excelChart, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets chart area fill/line styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fillColor OfficeIMO.OfficeColor? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- noFill bool = false
- The value.
- noLine bool = false
- The value.
public static ExcelChart DataLabelCallouts(ExcelChart excelChart, bool enabled = true, OfficeChartDataLabelPosition? position = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Enables callout-style labels by positioning labels outside with leader lines.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- enabled bool = true
- The value.
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
public static ExcelChart DataLabelLeaderLines(ExcelChart excelChart, bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Configures data label leader lines for all chart labels.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- showLeaderLines bool = true
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
public static ExcelChart DataLabels(ExcelChart excelChart, bool? showValue = null, bool? showCategoryName = null, bool? showSeriesName = null, bool? showLegendKey = null, bool? showPercent = null, OfficeChartDataLabelPosition? position = null, string? numberFormat = null, bool? sourceLinked = null) #Updates supplied data-label settings for all supported chart families; omitted flags, position and number-format settings remain unchanged.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- showValue bool? = null
- The value.
- showCategoryName bool? = null
- The value.
- showSeriesName bool? = null
- The value.
- showLegendKey bool? = null
- The value.
- showPercent bool? = null
- The value.
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- The value.
- numberFormat string? = null
- The value.
- sourceLinked bool? = null
- The value.
public static ExcelChart DataLabelSeparator(ExcelChart excelChart, string? separator) #Sets the separator for all data labels.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- separator string?
- The value.
public static ExcelChart DataLabelShapeStyle(ExcelChart excelChart, 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
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fillColor OfficeIMO.OfficeColor? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- noFill bool = false
- The value.
- noLine bool = false
- The value.
public static ExcelChart DataLabelTextStyle(ExcelChart excelChart, 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
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public static ExcelChart LegendTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets the legend text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public static ExcelChart Name(ExcelChart excelChart, string value) #Sets ExcelChart.Name: Gets or sets the chart name (non-visual drawing name).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- value string
- The value.
Examples
// C# initializer or property // C# fluent
excelChart.Name = value; excelChart.Name(value);public static ExcelChart PlotAreaStyle(ExcelChart excelChart, OfficeColor? fillColor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noFill = false, bool noLine = false) #Sets plot area fill/line styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fillColor OfficeIMO.OfficeColor? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- noFill bool = false
- The value.
- noLine bool = false
- The value.
public static ExcelChart RadialLayout(ExcelChart excelChart, OfficeChartRadialLayout layout) #Sets geometry for an existing native two-dimensional pie or doughnut chart.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- layout OfficeIMO.Drawing.OfficeChartRadialLayout
- The value.
public static ExcelChart ScatterXAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter X-axis crosses the Y-axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
public static ExcelChart ScatterXAxisScale(ExcelChart excelChart, 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 (value axis on the bottom).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- minimum double? = null
- The value.
- maximum double? = null
- The value.
- majorUnit double? = null
- The value.
- minorUnit double? = null
- The value.
- reverseOrder bool? = null
- The value.
- logScale bool? = null
- The value.
- logBase double? = null
- The value.
public static ExcelChart ScatterYAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter Y-axis crosses the X-axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
public static ExcelChart ScatterYAxisScale(ExcelChart excelChart, 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 (value axis on the left).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- minimum double? = null
- The value.
- maximum double? = null
- The value.
- majorUnit double? = null
- The value.
- minorUnit double? = null
- The value.
- reverseOrder bool? = null
- The value.
- logScale bool? = null
- The value.
- logBase double? = null
- The value.
public static ExcelChart SecondaryValueAxis(ExcelChart excelChart, OfficeChartValueAxisLayout layout) #Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- layout OfficeIMO.Drawing.OfficeChartValueAxisLayout
- The value.
public static ExcelChart Title(ExcelChart excelChart, string title) #Sets the chart title text.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- title string
- The value.
public static ExcelChart TitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null) #Sets the chart title text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public static ExcelChart ValueAxisCrossBetween(ExcelChart excelChart, OfficeChartAxisCrossBetween between, OfficeChartAxisGroup axisGroup = Primary) #Sets how the value axis crosses between categories.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- between OfficeIMO.Drawing.OfficeChartAxisCrossBetween
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisCrossing(ExcelChart excelChart, OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the value axis crosses the category axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, OfficeChartDisplayUnit unit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, OfficeChartDisplayUnit unit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis with custom label text.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- The value.
- labelText string
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, double customUnit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- customUnit double
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisDisplayUnits(ExcelChart excelChart, double customUnit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis with custom label text.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- customUnit double
- The value.
- labelText string
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisGridlines(ExcelChart excelChart, bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis gridlines visibility and optional styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- showMajor bool? = null
- The value.
- showMinor bool? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisLabelRotation(ExcelChart excelChart, double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis label rotation in degrees (-90..90).
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- rotationDegrees double
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisLabelTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis label text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisLine(ExcelChart excelChart, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis line visibility and optional styling.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
- noLine bool = false
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public static ExcelChart ValueAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked = false) #Sets the value axis number format.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- formatCode string
- The value.
- sourceLinked bool = false
- The value.
public static ExcelChart ValueAxisNumberFormat(ExcelChart excelChart, string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the value axis number format for the selected axis group.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- formatCode string
- The value.
- sourceLinked bool
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public static ExcelChart ValueAxisScale(ExcelChart excelChart, double? minimum = null, double? maximum = null, double? majorUnit = null, double? minorUnit = null, double? logBase = null, bool? reverseOrder = null, OfficeChartAxisGroup axisGroup = Primary, bool? logScale = null) #Sets value axis scale parameters for the selected axis group.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- minimum double? = null
- The value.
- maximum double? = null
- The value.
- majorUnit double? = null
- The value.
- minorUnit double? = null
- The value.
- logBase double? = null
- The value.
- reverseOrder bool? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
- logScale bool? = null
- The value.
public static ExcelChart ValueAxisTitle(ExcelChart excelChart, string title) #Sets the value axis title.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- title string
- The value.
public static ExcelChart ValueAxisTitle(ExcelChart excelChart, string title, OfficeChartAxisGroup axisGroup) #Sets the value axis title for the selected axis group.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- title string
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public static ExcelChart ValueAxisTitleTextStyle(ExcelChart excelChart, OfficeLength? fontSize = null, bool? bold = null, bool? italic = null, OfficeColor? color = null, string? fontFamily = null, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis title text style.
Parameters
- excelChart OfficeIMO.Excel.ExcelChart
- The instance.
- fontSize OfficeIMO.OfficeLength? = null
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.