API Reference
ExcelChart
Represents a chart on a worksheet.
Inheritance
- Object
- ExcelChart
Methods
public ExcelChart ApplyStylePreset(Int32 styleId = 251, Int32 colorStyleId = 10) #ExcelChartApplies a built-in chart style/color preset.
Parameters
- styleId System.Int32 = 251
- colorStyleId System.Int32 = 10
public ExcelChart ApplyStylePreset(ExcelChartStylePreset preset) #ExcelChartApplies a chart style/color preset.
Parameters
- preset OfficeIMO.Excel.ExcelChartStylePreset
public ExcelChart ClearSeriesTrendline(Int32 seriesIndex) #ExcelChartRemoves trendlines from a chart series by index.
Parameters
- seriesIndex System.Int32
public ExcelChart ClearSeriesTrendline(String seriesName, Boolean ignoreCase = true) #ExcelChartRemoves trendlines from a chart series by name.
Parameters
- seriesName System.String
- ignoreCase System.Boolean = true
public ExcelChart ClearValueAxisDisplayUnits(ExcelChartAxisGroup axisGroup = Primary) #ExcelChartClears display units from the value axis.
Parameters
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisCrossing(CrossesValues crosses, Nullable<Double> crossesAt = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets where the category axis crosses the value axis.
Parameters
- crosses DocumentFormat.OpenXml.Drawing.Charts.CrossesValues
- crossesAt System.Nullable{System.Double} = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisGridlines(Boolean showMajor = true, Boolean showMinor = false, String lineColor = null, Nullable<Double> lineWidthPoints = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets category axis gridlines visibility and optional styling.
Parameters
- showMajor System.Boolean = true
- showMinor System.Boolean = false
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisLabelRotation(Double rotationDegrees, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the category axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees System.Double
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisLabelTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the category axis label text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisNumberFormat(String formatCode, Boolean sourceLinked = false) #ExcelChartSets the category axis number format.
Parameters
- formatCode System.String
- sourceLinked System.Boolean = false
public ExcelChart SetCategoryAxisNumberFormat(String formatCode, Boolean sourceLinked, ExcelChartAxisGroup axisGroup) #ExcelChartSets the category axis number format for the selected axis group.
Parameters
- formatCode System.String
- sourceLinked System.Boolean
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
public ExcelChart SetCategoryAxisReverseOrder(Boolean reverseOrder = true, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the category axis orientation (normal or reversed order).
Parameters
- reverseOrder System.Boolean = true
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisTickLabelPosition(TickLabelPositionValues position, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the category axis tick label position.
Parameters
- position DocumentFormat.OpenXml.Drawing.Charts.TickLabelPositionValues
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetCategoryAxisTitle(String title) #ExcelChartSets the category axis title.
Parameters
- title System.String
public ExcelChart SetCategoryAxisTitle(String title, ExcelChartAxisGroup axisGroup) #ExcelChartSets the category axis title for the selected axis group.
Parameters
- title System.String
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
public ExcelChart SetCategoryAxisTitleTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the category axis title text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetChartAreaStyle(String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false) #ExcelChartSets chart area fill/line styling.
Parameters
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
public ExcelChart SetDataLabelCallouts(Boolean enabled = true, Nullable<DataLabelPositionValues> position = null, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartEnables callout-style labels by positioning labels outside with leader lines.
Parameters
- enabled System.Boolean = true
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetDataLabelLeaderLines(Boolean showLeaderLines = true, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartConfigures data label leader lines for all chart labels.
Parameters
- showLeaderLines System.Boolean = true
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetDataLabels(Boolean showValue = true, Boolean showCategoryName = false, Boolean showSeriesName = false, Boolean showLegendKey = false, Boolean showPercent = false) #ExcelChartConfigures data labels for all supported chart series.
Parameters
- showValue System.Boolean = true
- showCategoryName System.Boolean = false
- showSeriesName System.Boolean = false
- showLegendKey System.Boolean = false
- showPercent System.Boolean = false
public ExcelChart SetDataLabels(Boolean showValue, Boolean showCategoryName, Boolean showSeriesName, Boolean showLegendKey, Boolean showPercent, Nullable<DataLabelPositionValues> position, String numberFormat, Boolean sourceLinked = false) #ExcelChartConfigures data labels for all supported chart series with optional formatting.
Parameters
- showValue System.Boolean
- showCategoryName System.Boolean
- showSeriesName System.Boolean
- showLegendKey System.Boolean
- showPercent System.Boolean
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues}
- numberFormat System.String
- sourceLinked System.Boolean = false
public ExcelChart SetDataLabelSeparator(String separator) #ExcelChartSets the separator for all data labels.
Parameters
- separator System.String
public ExcelChart SetDataLabelShapeStyle(String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false) #ExcelChartSets data label shape styling for all chart labels.
Parameters
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
public ExcelChart SetDataLabelTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null) #ExcelChartSets data label text style for all chart labels.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
public ExcelChart SetLegend(LegendPositionValues position, Boolean overlay = false) #ExcelChartSets the legend position and visibility.
Parameters
- position DocumentFormat.OpenXml.Drawing.Charts.LegendPositionValues
- overlay System.Boolean = false
public ExcelChart SetLegendTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null) #ExcelChartSets the legend text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
public ExcelChart SetPlotAreaStyle(String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false) #ExcelChartSets plot area fill/line styling.
Parameters
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
public ExcelChart SetScatterXAxisCrossing(CrossesValues crosses, Nullable<Double> crossesAt = null) #ExcelChartSets where the scatter X-axis crosses the Y-axis.
Parameters
- crosses DocumentFormat.OpenXml.Drawing.Charts.CrossesValues
- crossesAt System.Nullable{System.Double} = null
public ExcelChart SetScatterXAxisScale(Nullable<Double> minimum = null, Nullable<Double> maximum = null, Nullable<Double> majorUnit = null, Nullable<Double> minorUnit = null, Nullable<Boolean> reverseOrder = null, Nullable<Boolean> logScale = null, Nullable<Double> logBase = null) #ExcelChartSets scatter chart X-axis scale (value axis on the bottom).
Parameters
- minimum System.Nullable{System.Double} = null
- maximum System.Nullable{System.Double} = null
- majorUnit System.Nullable{System.Double} = null
- minorUnit System.Nullable{System.Double} = null
- reverseOrder System.Nullable{System.Boolean} = null
- logScale System.Nullable{System.Boolean} = null
- logBase System.Nullable{System.Double} = null
public ExcelChart SetScatterYAxisCrossing(CrossesValues crosses, Nullable<Double> crossesAt = null) #ExcelChartSets where the scatter Y-axis crosses the X-axis.
Parameters
- crosses DocumentFormat.OpenXml.Drawing.Charts.CrossesValues
- crossesAt System.Nullable{System.Double} = null
public ExcelChart SetScatterYAxisScale(Nullable<Double> minimum = null, Nullable<Double> maximum = null, Nullable<Double> majorUnit = null, Nullable<Double> minorUnit = null, Nullable<Boolean> reverseOrder = null, Nullable<Boolean> logScale = null, Nullable<Double> logBase = null) #ExcelChartSets scatter chart Y-axis scale (value axis on the left).
Parameters
- minimum System.Nullable{System.Double} = null
- maximum System.Nullable{System.Double} = null
- majorUnit System.Nullable{System.Double} = null
- minorUnit System.Nullable{System.Double} = null
- reverseOrder System.Nullable{System.Boolean} = null
- logScale System.Nullable{System.Boolean} = null
- logBase System.Nullable{System.Double} = null
public ExcelChart SetSeriesDataLabelCallouts(Int32 seriesIndex, Boolean enabled = true, Nullable<DataLabelPositionValues> position = null, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartEnables callout-style labels for a series by index.
Parameters
- seriesIndex System.Int32
- enabled System.Boolean = true
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetSeriesDataLabelCallouts(String seriesName, Boolean enabled = true, Nullable<DataLabelPositionValues> position = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean ignoreCase = true) #ExcelChartEnables callout-style labels for a series by name.
Parameters
- seriesName System.String
- enabled System.Boolean = true
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelForPoint(Int32 seriesIndex, Int32 pointIndex, Nullable<Boolean> showValue = null, Nullable<Boolean> showCategoryName = null, Nullable<Boolean> showSeriesName = null, Nullable<Boolean> showLegendKey = null, Nullable<Boolean> showPercent = null, Nullable<Boolean> showBubbleSize = null, Nullable<DataLabelPositionValues> position = null, String numberFormat = null, Boolean sourceLinked = false) #ExcelChartConfigures a single data label point by series index and point index.
Parameters
- seriesIndex System.Int32
- pointIndex System.Int32
- showValue System.Nullable{System.Boolean} = null
- showCategoryName System.Nullable{System.Boolean} = null
- showSeriesName System.Nullable{System.Boolean} = null
- showLegendKey System.Nullable{System.Boolean} = null
- showPercent System.Nullable{System.Boolean} = null
- showBubbleSize System.Nullable{System.Boolean} = null
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- numberFormat System.String = null
- sourceLinked System.Boolean = false
public ExcelChart SetSeriesDataLabelForPoint(String seriesName, Int32 pointIndex, Nullable<Boolean> showValue = null, Nullable<Boolean> showCategoryName = null, Nullable<Boolean> showSeriesName = null, Nullable<Boolean> showLegendKey = null, Nullable<Boolean> showPercent = null, Nullable<Boolean> showBubbleSize = null, Nullable<DataLabelPositionValues> position = null, String numberFormat = null, Boolean sourceLinked = false, Boolean ignoreCase = true) #ExcelChartConfigures a single data label point by series name and point index.
Parameters
- seriesName System.String
- pointIndex System.Int32
- showValue System.Nullable{System.Boolean} = null
- showCategoryName System.Nullable{System.Boolean} = null
- showSeriesName System.Nullable{System.Boolean} = null
- showLegendKey System.Nullable{System.Boolean} = null
- showPercent System.Nullable{System.Boolean} = null
- showBubbleSize System.Nullable{System.Boolean} = null
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- numberFormat System.String = null
- sourceLinked System.Boolean = false
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelLeaderLines(Int32 seriesIndex, Boolean showLeaderLines = true, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartConfigures data label leader lines for a series by index.
Parameters
- seriesIndex System.Int32
- showLeaderLines System.Boolean = true
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetSeriesDataLabelLeaderLines(String seriesName, Boolean showLeaderLines = true, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean ignoreCase = true) #ExcelChartConfigures data label leader lines for a series by name.
Parameters
- seriesName System.String
- showLeaderLines System.Boolean = true
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabels(Int32 seriesIndex, Boolean showValue = true, Boolean showCategoryName = false, Boolean showSeriesName = false, Boolean showLegendKey = false, Boolean showPercent = false, Nullable<DataLabelPositionValues> position = null, String numberFormat = null, Boolean sourceLinked = false) #ExcelChartConfigures data labels for a single series by index.
Parameters
- seriesIndex System.Int32
- showValue System.Boolean = true
- showCategoryName System.Boolean = false
- showSeriesName System.Boolean = false
- showLegendKey System.Boolean = false
- showPercent System.Boolean = false
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- numberFormat System.String = null
- sourceLinked System.Boolean = false
public ExcelChart SetSeriesDataLabels(String seriesName, Boolean showValue = true, Boolean showCategoryName = false, Boolean showSeriesName = false, Boolean showLegendKey = false, Boolean showPercent = false, Nullable<DataLabelPositionValues> position = null, String numberFormat = null, Boolean sourceLinked = false, Boolean ignoreCase = true) #ExcelChartConfigures data labels for a single series by name.
Parameters
- seriesName System.String
- showValue System.Boolean = true
- showCategoryName System.Boolean = false
- showSeriesName System.Boolean = false
- showLegendKey System.Boolean = false
- showPercent System.Boolean = false
- position System.Nullable{DocumentFormat.OpenXml.Drawing.Charts.DataLabelPositionValues} = null
- numberFormat System.String = null
- sourceLinked System.Boolean = false
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelSeparator(Int32 seriesIndex, String separator) #ExcelChartSets the separator for data labels in a series by index.
Parameters
- seriesIndex System.Int32
- separator System.String
public ExcelChart SetSeriesDataLabelSeparator(String seriesName, String separator, Boolean ignoreCase = true) #ExcelChartSets the separator for data labels in a series by name.
Parameters
- seriesName System.String
- separator System.String
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelSeparatorForPoint(Int32 seriesIndex, Int32 pointIndex, String separator) #ExcelChartSets the separator for a specific data label point by series index.
Parameters
- seriesIndex System.Int32
- pointIndex System.Int32
- separator System.String
public ExcelChart SetSeriesDataLabelSeparatorForPoint(String seriesName, Int32 pointIndex, String separator, Boolean ignoreCase = true) #ExcelChartSets the separator for a specific data label point by series name.
Parameters
- seriesName System.String
- pointIndex System.Int32
- separator System.String
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelShapeStyle(Int32 seriesIndex, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false) #ExcelChartSets data label shape styling for a series by index.
Parameters
- seriesIndex System.Int32
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
public ExcelChart SetSeriesDataLabelShapeStyle(String seriesName, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false, Boolean ignoreCase = true) #ExcelChartSets data label shape styling for a series by name.
Parameters
- seriesName System.String
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelShapeStyleForPoint(Int32 seriesIndex, Int32 pointIndex, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false) #ExcelChartSets data label shape styling for a specific point by series index.
Parameters
- seriesIndex System.Int32
- pointIndex System.Int32
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
public ExcelChart SetSeriesDataLabelShapeStyleForPoint(String seriesName, Int32 pointIndex, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean noFill = false, Boolean noLine = false, Boolean ignoreCase = true) #ExcelChartSets data label shape styling for a specific point by series name.
Parameters
- seriesName System.String
- pointIndex System.Int32
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- noFill System.Boolean = false
- noLine System.Boolean = false
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelTemplate(Int32 seriesIndex, ExcelChartDataLabelTemplate template) #ExcelChartApplies a reusable data label template to a series by index.
Parameters
- seriesIndex System.Int32
- template OfficeIMO.Excel.ExcelChartDataLabelTemplate
public ExcelChart SetSeriesDataLabelTemplate(String seriesName, ExcelChartDataLabelTemplate template, Boolean ignoreCase = true) #ExcelChartApplies a reusable data label template to a series by name.
Parameters
- seriesName System.String
- template OfficeIMO.Excel.ExcelChartDataLabelTemplate
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelTextStyle(Int32 seriesIndex, Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null) #ExcelChartSets data label text style for a series by index.
Parameters
- seriesIndex System.Int32
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
public ExcelChart SetSeriesDataLabelTextStyle(String seriesName, Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, Boolean ignoreCase = true) #ExcelChartSets data label text style for a series by name.
Parameters
- seriesName System.String
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesDataLabelTextStyleForPoint(Int32 seriesIndex, Int32 pointIndex, Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null) #ExcelChartSets data label text style for a specific point by series index.
Parameters
- seriesIndex System.Int32
- pointIndex System.Int32
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
public ExcelChart SetSeriesDataLabelTextStyleForPoint(String seriesName, Int32 pointIndex, Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, Boolean ignoreCase = true) #ExcelChartSets data label text style for a specific point by series name.
Parameters
- seriesName System.String
- pointIndex System.Int32
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesFillColor(Int32 seriesIndex, String color) #ExcelChartSets the fill color for a chart series by index.
Parameters
- seriesIndex System.Int32
- color System.String
public ExcelChart SetSeriesFillColor(String seriesName, String color, Boolean ignoreCase = true) #ExcelChartSets the fill color for a chart series by name.
Parameters
- seriesName System.String
- color System.String
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesLineColor(Int32 seriesIndex, String color, Nullable<Double> widthPoints = null) #ExcelChartSets the line color for a chart series by index.
Parameters
- seriesIndex System.Int32
- color System.String
- widthPoints System.Nullable{System.Double} = null
public ExcelChart SetSeriesLineColor(String seriesName, String color, Nullable<Double> widthPoints = null, Boolean ignoreCase = true) #ExcelChartSets the line color for a chart series by name.
Parameters
- seriesName System.String
- color System.String
- widthPoints System.Nullable{System.Double} = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesMarker(Int32 seriesIndex, MarkerStyleValues style, Nullable<Int32> size = null, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartSets the marker style for a chart series by index.
Parameters
- seriesIndex System.Int32
- style DocumentFormat.OpenXml.Drawing.Charts.MarkerStyleValues
- size System.Nullable{System.Int32} = null
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetSeriesMarker(String seriesName, MarkerStyleValues style, Nullable<Int32> size = null, String fillColor = null, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean ignoreCase = true) #ExcelChartSets the marker style for a chart series by name.
Parameters
- seriesName System.String
- style DocumentFormat.OpenXml.Drawing.Charts.MarkerStyleValues
- size System.Nullable{System.Int32} = null
- fillColor System.String = null
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- ignoreCase System.Boolean = true
public ExcelChart SetSeriesTrendline(Int32 seriesIndex, TrendlineValues type, Nullable<Int32> order = null, Nullable<Int32> period = null, Nullable<Double> forward = null, Nullable<Double> backward = null, Nullable<Double> intercept = null, Boolean displayEquation = false, Boolean displayRSquared = false, String lineColor = null, Nullable<Double> lineWidthPoints = null) #ExcelChartAdds or replaces a trendline for a chart series by index.
Parameters
- seriesIndex System.Int32
- type DocumentFormat.OpenXml.Drawing.Charts.TrendlineValues
- order System.Nullable{System.Int32} = null
- period System.Nullable{System.Int32} = null
- forward System.Nullable{System.Double} = null
- backward System.Nullable{System.Double} = null
- intercept System.Nullable{System.Double} = null
- displayEquation System.Boolean = false
- displayRSquared System.Boolean = false
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
public ExcelChart SetSeriesTrendline(String seriesName, TrendlineValues type, Nullable<Int32> order = null, Nullable<Int32> period = null, Nullable<Double> forward = null, Nullable<Double> backward = null, Nullable<Double> intercept = null, Boolean displayEquation = false, Boolean displayRSquared = false, String lineColor = null, Nullable<Double> lineWidthPoints = null, Boolean ignoreCase = true) #ExcelChartAdds or replaces a trendline for a chart series by name.
Parameters
- seriesName System.String
- type DocumentFormat.OpenXml.Drawing.Charts.TrendlineValues
- order System.Nullable{System.Int32} = null
- period System.Nullable{System.Int32} = null
- forward System.Nullable{System.Double} = null
- backward System.Nullable{System.Double} = null
- intercept System.Nullable{System.Double} = null
- displayEquation System.Boolean = false
- displayRSquared System.Boolean = false
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- ignoreCase System.Boolean = true
public ExcelChart SetTitle(String title) #ExcelChartSets the chart title text.
Parameters
- title System.String
public ExcelChart SetTitleTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null) #ExcelChartSets the chart title text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
public ExcelChart SetValueAxisCrossBetween(CrossBetweenValues between, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets how the value axis crosses between categories.
Parameters
- between DocumentFormat.OpenXml.Drawing.Charts.CrossBetweenValues
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisCrossing(CrossesValues crosses, Nullable<Double> crossesAt = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets where the value axis crosses the category axis.
Parameters
- crosses DocumentFormat.OpenXml.Drawing.Charts.CrossesValues
- crossesAt System.Nullable{System.Double} = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisDisplayUnits(Double customUnit, Boolean showLabel = true, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets display units for the value axis.
Parameters
- arg1 DocumentFormat.OpenXml.Drawing.Charts.BuiltInUnitValues
- arg2 System.Boolean = true
- arg3 OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisDisplayUnits(Double customUnit, String labelText, Boolean showLabel = true, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets display units for the value axis with custom label text.
Parameters
- arg1 DocumentFormat.OpenXml.Drawing.Charts.BuiltInUnitValues
- arg2 System.String
- arg3 System.Boolean = true
- arg4 OfficeIMO.Excel.ExcelChartAxisGroup = Primary
SetValueAxisDisplayUnits(System.Double customUnit, System.Boolean showLabel, OfficeIMO.Excel.ExcelChartAxisGroup axisGroup) #Sets custom display units for the value axis.
Parameters
- customUnit System.Double
- showLabel System.Boolean
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
SetValueAxisDisplayUnits(System.Double customUnit, System.String labelText, System.Boolean showLabel, OfficeIMO.Excel.ExcelChartAxisGroup axisGroup) #Sets custom display units for the value axis with custom label text.
Parameters
- customUnit System.Double
- labelText System.String
- showLabel System.Boolean
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
public ExcelChart SetValueAxisGridlines(Boolean showMajor = true, Boolean showMinor = false, String lineColor = null, Nullable<Double> lineWidthPoints = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets value axis gridlines visibility and optional styling.
Parameters
- showMajor System.Boolean = true
- showMinor System.Boolean = false
- lineColor System.String = null
- lineWidthPoints System.Nullable{System.Double} = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisLabelRotation(Double rotationDegrees, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the value axis label rotation in degrees (-90..90).
Parameters
- rotationDegrees System.Double
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisLabelTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the value axis label text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisNumberFormat(String formatCode, Boolean sourceLinked = false) #ExcelChartSets the value axis number format.
Parameters
- formatCode System.String
- sourceLinked System.Boolean = false
public ExcelChart SetValueAxisNumberFormat(String formatCode, Boolean sourceLinked, ExcelChartAxisGroup axisGroup) #ExcelChartSets the value axis number format for the selected axis group.
Parameters
- formatCode System.String
- sourceLinked System.Boolean
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
public ExcelChart SetValueAxisScale(Nullable<Double> minimum = null, Nullable<Double> maximum = null, Nullable<Double> majorUnit = null, Nullable<Double> minorUnit = null, Nullable<Double> logBase = null, Nullable<Boolean> reverseOrder = null, ExcelChartAxisGroup axisGroup = Primary, Nullable<Boolean> logScale = null) #ExcelChartSets value axis scale parameters for the selected axis group.
Parameters
- minimum System.Nullable{System.Double} = null
- maximum System.Nullable{System.Double} = null
- majorUnit System.Nullable{System.Double} = null
- minorUnit System.Nullable{System.Double} = null
- logBase System.Nullable{System.Double} = null
- reverseOrder System.Nullable{System.Boolean} = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
- logScale System.Nullable{System.Boolean} = null
public ExcelChart SetValueAxisTickLabelPosition(TickLabelPositionValues position, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the value axis tick label position.
Parameters
- position DocumentFormat.OpenXml.Drawing.Charts.TickLabelPositionValues
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart SetValueAxisTitle(String title) #ExcelChartSets the value axis title.
Parameters
- title System.String
public ExcelChart SetValueAxisTitle(String title, ExcelChartAxisGroup axisGroup) #ExcelChartSets the value axis title for the selected axis group.
Parameters
- title System.String
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup
public ExcelChart SetValueAxisTitleTextStyle(Nullable<Double> fontSizePoints = null, Nullable<Boolean> bold = null, Nullable<Boolean> italic = null, String color = null, String fontName = null, ExcelChartAxisGroup axisGroup = Primary) #ExcelChartSets the value axis title text style.
Parameters
- fontSizePoints System.Nullable{System.Double} = null
- bold System.Nullable{System.Boolean} = null
- italic System.Nullable{System.Boolean} = null
- color System.String = null
- fontName System.String = null
- axisGroup OfficeIMO.Excel.ExcelChartAxisGroup = Primary
public ExcelChart UpdateData<T>(IEnumerable<T> items, Func<T, String> categorySelector, params ExcelChartSeriesDefinition<T>[] seriesDefinitions) #ExcelChartUpdates the chart data (series and categories).
Type Parameters
- T
Parameters
- data OfficeIMO.Excel.ExcelChartData
- dataRange OfficeIMO.Excel.ExcelChartDataRange = null
- writeToSheet System.Boolean = true
UpdateData``1(System.Collections.Generic.IEnumerable{``0} items, System.Func{``0,System.String} categorySelector, OfficeIMO.Excel.ExcelChartSeriesDefinition{``0}[] seriesDefinitions) #Updates the chart data using selectors.
Parameters
- items System.Collections.Generic.IEnumerable{``0}
- categorySelector System.Func{``0,System.String}
- seriesDefinitions OfficeIMO.Excel.ExcelChartSeriesDefinition{``0}[]
Inherited Methods
public override Boolean Equals(Object obj) #BooleanParameters
- obj Object