ExcelChartScope
OfficeIMO.Excel
Edits one ExcelChart: its fluent methods and keywords, each returning this scope.
Inheritance
- object
- ExcelChartScope
Usage
Explore 41 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 40
- Method ExcelChartScope.AltText
- Method ExcelChartScope.CategoryAxisCrossing
- Method ExcelChartScope.CategoryAxisGridlines
- Method ExcelChartScope.CategoryAxisLabelRotation
- Method ExcelChartScope.CategoryAxisLabelTextStyle
- Method ExcelChartScope.CategoryAxisLine
- Method ExcelChartScope.CategoryAxisNumberFormat
- Method ExcelChartScope.CategoryAxisReverseOrder
- Method ExcelChartScope.CategoryAxisScale
- Method ExcelChartScope.CategoryAxisTitle
- Method ExcelChartScope.CategoryAxisTitleTextStyle
- Method ExcelChartScope.ChartAreaStyle
- Method ExcelChartScope.DataLabelCallouts
- Method ExcelChartScope.DataLabelLeaderLines
- Method ExcelChartScope.DataLabels
- Method ExcelChartScope.DataLabelSeparator
- Method ExcelChartScope.DataLabelShapeStyle
- Method ExcelChartScope.DataLabelTextStyle
- Method ExcelChartScope.LegendTextStyle
- Method ExcelChartScope.Name
- Method ExcelChartScope.PlotAreaStyle
- Method ExcelChartScope.RadialLayout
- Method ExcelChartScope.ScatterXAxisCrossing
- Method ExcelChartScope.ScatterXAxisScale
- Method ExcelChartScope.ScatterYAxisCrossing
- Method ExcelChartScope.ScatterYAxisScale
- Method ExcelChartScope.SecondaryValueAxis
- Method ExcelChartScope.Title
- Method ExcelChartScope.TitleTextStyle
- Method ExcelChartScope.ValueAxisCrossBetween
- Method ExcelChartScope.ValueAxisCrossing
- Method ExcelChartScope.ValueAxisDisplayUnits
- Method ExcelChartScope.ValueAxisGridlines
- Method ExcelChartScope.ValueAxisLabelRotation
- Method ExcelChartScope.ValueAxisLabelTextStyle
- Method ExcelChartScope.ValueAxisLine
- Method ExcelChartScope.ValueAxisNumberFormat
- Method ExcelChartScope.ValueAxisScale
- Method ExcelChartScope.ValueAxisTitle
- Method ExcelChartScope.ValueAxisTitleTextStyle
Accepted by parameters 1
- Method ExcelSheetScope.Chart
Methods
public ExcelChartScope AltText(string description, string? title = null) #Sets the chart's alternative text and optional title, and clears any decorative flag.
Parameters
- description string
- The value.
- title string? = null
- The value.
public ExcelChartScope CategoryAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the category axis crosses the value axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope CategoryAxisGridlines(bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis gridlines visibility and optional styling.
Parameters
- 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 ExcelChartScope CategoryAxisLabelRotation(double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees double
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope CategoryAxisLabelTextStyle(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
- 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 ExcelChartScope CategoryAxisLine(OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets category axis line visibility and optional styling.
Parameters
- 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 ExcelChartScope CategoryAxisNumberFormat(string formatCode, bool sourceLinked = false) #Sets the category axis number format.
Parameters
- formatCode string
- The value.
- sourceLinked bool = false
- The value.
public ExcelChartScope CategoryAxisNumberFormat(string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the category axis number format for the selected axis group.
Parameters
- formatCode string
- The value.
- sourceLinked bool
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public ExcelChartScope CategoryAxisReverseOrder(bool reverseOrder = true, OfficeChartAxisGroup axisGroup = Primary) #Sets the category axis orientation (normal or reversed order).
Parameters
- reverseOrder bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope CategoryAxisScale(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
- 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 ExcelChartScope CategoryAxisTitle(string title) #Sets the category axis title.
Parameters
- title string
- The value.
public ExcelChartScope CategoryAxisTitle(string title, OfficeChartAxisGroup axisGroup) #Sets the category axis title for the selected axis group.
Parameters
- title string
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public ExcelChartScope CategoryAxisTitleTextStyle(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
- 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 ExcelChartScope ChartAreaStyle(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
- 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 ExcelChartScope DataLabelCallouts(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
- The value.
- position OfficeIMO.Drawing.OfficeChartDataLabelPosition? = null
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
public ExcelChartScope DataLabelLeaderLines(bool showLeaderLines = true, OfficeColor? lineColor = null, OfficeLength? lineWidth = null) #Configures data label leader lines for all chart labels.
Parameters
- showLeaderLines bool = true
- The value.
- lineColor OfficeIMO.OfficeColor? = null
- The value.
- lineWidth OfficeIMO.OfficeLength? = null
- The value.
public ExcelChartScope DataLabels(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
- 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 ExcelChartScope DataLabelSeparator(string? separator) #Sets the separator for all data labels.
Parameters
- separator string?
- The value.
public ExcelChartScope DataLabelShapeStyle(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
- 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 ExcelChartScope DataLabelTextStyle(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
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public ExcelChartScope LegendTextStyle(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
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public ExcelChartScope Name(string value) #Sets ExcelChart.Name: Gets or sets the chart name (non-visual drawing name).
Parameters
- value string
- The value.
public ExcelChartScope PlotAreaStyle(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
- 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 ExcelChartScope RadialLayout(OfficeChartRadialLayout layout) #Sets geometry for an existing native two-dimensional pie or doughnut chart.
Parameters
- layout OfficeIMO.Drawing.OfficeChartRadialLayout
- The value.
public ExcelChartScope ScatterXAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter X-axis crosses the Y-axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
public ExcelChartScope ScatterXAxisScale(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
- 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 ExcelChartScope ScatterYAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null) #Sets where the scatter Y-axis crosses the X-axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
public ExcelChartScope ScatterYAxisScale(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
- 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 ExcelChartScope SecondaryValueAxis(OfficeChartValueAxisLayout layout) #Sets independent bounds, tick spacing and appearance, and number format on the existing secondary value axis.
Parameters
- layout OfficeIMO.Drawing.OfficeChartValueAxisLayout
- The value.
public ExcelChartScope Title(string title) #Sets the chart title text.
Parameters
- title string
- The value.
public ExcelChartScope TitleTextStyle(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
- The value.
- bold bool? = null
- The value.
- italic bool? = null
- The value.
- color OfficeIMO.OfficeColor? = null
- The value.
- fontFamily string? = null
- The value.
public ExcelChartScope ValueAxisCrossBetween(OfficeChartAxisCrossBetween between, OfficeChartAxisGroup axisGroup = Primary) #Sets how the value axis crosses between categories.
Parameters
- between OfficeIMO.Drawing.OfficeChartAxisCrossBetween
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisCrossing(OfficeChartAxisCrossingPosition crosses, double? crossesAt = null, OfficeChartAxisGroup axisGroup = Primary) #Sets where the value axis crosses the category axis.
Parameters
- crosses OfficeIMO.Drawing.OfficeChartAxisCrossingPosition
- The value.
- crossesAt double? = null
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisDisplayUnits(OfficeChartDisplayUnit unit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis.
Parameters
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisDisplayUnits(OfficeChartDisplayUnit unit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets display units for the value axis with custom label text.
Parameters
- unit OfficeIMO.Drawing.OfficeChartDisplayUnit
- The value.
- labelText string
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisDisplayUnits(double customUnit, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis.
Parameters
- customUnit double
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisDisplayUnits(double customUnit, string labelText, bool showLabel = true, OfficeChartAxisGroup axisGroup = Primary) #Sets custom display units for the value axis with custom label text.
Parameters
- customUnit double
- The value.
- labelText string
- The value.
- showLabel bool = true
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisGridlines(bool? showMajor = null, bool? showMinor = null, OfficeColor? lineColor = null, OfficeLength? lineWidth = null, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis gridlines visibility and optional styling.
Parameters
- 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 ExcelChartScope ValueAxisLabelRotation(double rotationDegrees, OfficeChartAxisGroup axisGroup = Primary) #Sets the value axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees double
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup = Primary
- The value.
public ExcelChartScope ValueAxisLabelTextStyle(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
- 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 ExcelChartScope ValueAxisLine(OfficeColor? lineColor = null, OfficeLength? lineWidth = null, bool noLine = false, OfficeChartAxisGroup axisGroup = Primary) #Sets value axis line visibility and optional styling.
Parameters
- 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 ExcelChartScope ValueAxisNumberFormat(string formatCode, bool sourceLinked = false) #Sets the value axis number format.
Parameters
- formatCode string
- The value.
- sourceLinked bool = false
- The value.
public ExcelChartScope ValueAxisNumberFormat(string formatCode, bool sourceLinked, OfficeChartAxisGroup axisGroup) #Sets the value axis number format for the selected axis group.
Parameters
- formatCode string
- The value.
- sourceLinked bool
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public ExcelChartScope ValueAxisScale(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
- 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 ExcelChartScope ValueAxisTitle(string title) #Sets the value axis title.
Parameters
- title string
- The value.
public ExcelChartScope ValueAxisTitle(string title, OfficeChartAxisGroup axisGroup) #Sets the value axis title for the selected axis group.
Parameters
- title string
- The value.
- axisGroup OfficeIMO.Drawing.OfficeChartAxisGroup
- The value.
public ExcelChartScope ValueAxisTitleTextStyle(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
- 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.
Inherited Methods
Properties
public ExcelChart Model { get; } #The ExcelChart this scope edits, for plain C# inside a lambda.