Represents a chart.

Inherited from: WorksheetShapeGroupBase

Gets the collection of shapes contained in the group.

public WorksheetShapeCollection Shapes { get; }

Inherited from: WorksheetShape

Gets or sets the fill to use in the background of the shape.

public ShapeFill Fill { get; set; }

Inherited from: WorksheetShape

Gets or sets the cell where the bottom-right corner of the shape resides.

public WorksheetCell BottomRightCornerCell { get; set; }

Inherited from: WorksheetShape

Gets or sets the position in the of the shape's bottom-right corner, expressed in percentages.

public Point BottomRightCornerPosition { get; set; }

Inherited from: WorksheetShape

Gets or sets the value which indicates whether the shape is flipped horizontally along the vertical center line.

public bool FlippedHorizontally { get; set; }

Inherited from: WorksheetShape

Gets or sets the value which indicates whether the shape is flipped vertically along the horizontal center line.

public bool FlippedVertically { get; set; }

Inherited from: WorksheetShape

Gets or sets the outline to use for the shape.

public ShapeOutline Outline { get; set; }

Inherited from: WorksheetShape

Gets or sets the way shapes will be repositioned in excel when cells before or within the shape are resized.

public ShapePositioningMode PositioningMode { get; set; }

Inherited from: WorksheetShape

Gets or sets the cell where the top-left corner of the shape resides.

public WorksheetCell TopLeftCornerCell { get; set; }

Inherited from: WorksheetShape

Gets or sets the position in the of the shape's top-left corner, expressed in percentages.

public Point TopLeftCornerPosition { get; set; }

Inherited from: WorksheetShape

Gets or sets the value indicating whether the shape is visible on the worksheet.

public bool Visible { get; set; }

Inherited from: WorksheetShape

Gets the worksheet on which the shape resides.

public Worksheet Worksheet { get; }

True if Microsoft Excel scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. The property must be True

public bool AutoScaling { get; set; }

Returns the axis collection (read-only)

public AxisCollection AxisCollection { get; }

Returns a object that allows the user to format the back wall of a 3-D chart. Read-only.

public Wall BackWall { get; }

Returns or sets the shape of bars. Applicable only to 3D bar-type charts.

public BarShape? BarShape { get; set; }

Returns the resolved value of the property.

public BarShape BarShapeResolved { get; }

Returns a object that represents the complete chart area for the chart. Read-only.

public ChartArea ChartArea { get; }

Returns or sets an object.

public ChartTitle ChartTitle { get; set; }

Specifies the chart type.

public ChartType ChartType { get; set; }

Returns a collection of the instances associated with this chart.

public ComboChartGroupCollection ComboChartGroups { get; }

Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent).

public int DepthPercent { get; set; }

Returns or sets the way that blank cells are plotted on a chart.

public DisplayBlanksAs DisplayBlanksAs { get; set; }

Returns or sets the size of the hole in a doughnut chart, expressed as a percentage of the size of the encompassing circle.

public int DoughnutHoleSize { get; set; }

Returns or sets a instance which determines the appearance for a stock chart's drop lines.

public ChartDropLines DropLines { get; set; }

Returns or sets the angle which determines the origin of the first slice, as relative to the 12 o'clock position of the emcompassing circle.

public int FirstSliceAngle { get; set; }

Returns a object that allows the user to format the bottom wall of a 3-D chart. Read-only.

public Wall Floor { get; }

Returns or sets the gap depth in a 3-D chart, expressed as a percentage of the marker width. The value of this property must be between 0 and 500.

public int GapDepth { get; set; }

Returns or sets the distance between the data series in a bar chart, as a percentage of the marker width. The value of this property must be between 0 and 500.

public int GapWidth { get; set; }

Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent).

public int HeightPercent { get; set; }

Returns or sets a instance which determines the appearance for a stock chart's high/low lines.

public ChartHighLowLines HighLowLines { get; set; }

Returns or sets a object which represents the legend for the chart.

public Legend Legend { get; set; }

Returns or sets a value that represents the perspective for the 3-D chart view, expressed in degrees.

public int Perspective { get; set; }

Returns a PlotArea object that represents the plot area of a chart. Read-only.

public PlotArea PlotArea { get; }

True if only visible cells are plotted. False if both visible and hidden cells are plotted.

public bool PlotVisibleOnly { get; set; }

True if the chart axes are at right angles, independent of chart rotation or elevation. Applies only to 3-D line, column, and bar charts.

public bool RightAngleAxes { get; set; }

Returns or sets the rotation of a 3-D chart view around the X-axis, expressed in degrees.

public int RotationX { get; set; }

Returns or sets the rotation of a 3-D chart view around the Y-axis, expressed in degrees.

public int RotationY { get; set; }

Returns or sets the size of the second plot area in a 'bar of pie' or 'pie of pie' chart, expressed as a percentage of the first plot area's size.

public int SecondPlotSize { get; set; }

Returns the series collection (read-only)

public SeriesCollection SeriesCollection { get; }

Determines the and for the lines which connect the first and second plot areas in a 'bar of pie' or 'pie of pie' chart.

public ChartSeriesLines SeriesLines { get; set; }

Determines the amount by which intersecting overlap, expressed as a percentage of the bar size.

public int SeriesOverlap { get; set; }

Gets the worksheet on which the shape resides.

public override Sheet Sheet { get; }

Returns a object that allows the user to format the side wall of a 3-D chart. Read-only.

public Wall SideWall { get; }

Returns or sets a instance which determines the appearance for a stock chart's up/down bars.

public UpDownBars UpDownBars { get; set; }

Returns or sets a boolean value indicating whether the fill colors for and are automatically selected by Excel.

public bool VaryColors { get; set; }

Returns a object which represents the back and side walls, and floor of the chart. Applicable only for 3-D charts.

public Wall WallDefault { get; }

Inherited from: WorksheetShape

Clears the cached unknown shape data which was read in from a parsed excel file.

public virtual void ClearUnknownData()

Returns any

CreatePredefinedShape(PredefinedShapeType)

Section titled "CreatePredefinedShape(PredefinedShapeType)"

Inherited from: WorksheetShape

Creates a shape which is predefined in Microsoft Excel.

public static WorksheetShape CreatePredefinedShape(PredefinedShapeType shapeType)

Parameters

  • shapeType: PredefinedShapeType

Returns any

Inherited from: WorksheetShape

Gets the bounds of the shape in twips (1/20th of a point).

public virtual Rect GetBoundsInTwips()

Returns any

GetBoundsInTwips(PositioningOptions)

Section titled "GetBoundsInTwips(PositioningOptions)"

Inherited from: WorksheetShape

Gets the bounds of the shape in twips (1/20th of a point).

public virtual Rect GetBoundsInTwips(PositioningOptions options)

Parameters

  • options: PositioningOptions

Returns any

Inherited from: WorksheetShape

Sets the bounds of the shape in twips (1/20th of a point).

public void SetBoundsInTwips(Sheet sheet, Rect bounds)

Parameters

  • sheet: Sheet
  • bounds: Rect

Returns any

SetBoundsInTwips(Sheet, Rect, PositioningOptions)

Section titled "SetBoundsInTwips(Sheet, Rect, PositioningOptions)"

Inherited from: WorksheetShape

Sets the bounds of the shape in twips (1/20th of a point).

public void SetBoundsInTwips(Sheet sheet, Rect bounds, PositioningOptions options)

Parameters

  • sheet: Sheet
  • bounds: Rect
  • options: PositioningOptions

Returns any

SetComboChartSourceData(string, ChartType[], bool, CellReferenceMode?)

Section titled "SetComboChartSourceData(string, ChartType[], bool, CellReferenceMode?)"

Sets the source data range for a combo chart.

public void SetComboChartSourceData(string dataRange, ChartType[] seriesChartTypes, bool plotByRows = false, CellReferenceMode? cellReferenceMode = null)

Parameters

  • dataRange: string
  • seriesChartTypes: ChartType[]
  • plotByRows: bool
  • cellReferenceMode: CellReferenceMode?

Returns any

SetSourceData(string, bool, CellReferenceMode?)

Section titled "SetSourceData(string, bool, CellReferenceMode?)"

Sets the source data range for the chart.

public void SetSourceData(string dataRange, bool plotByRows = false, CellReferenceMode? cellReferenceMode = null)

Parameters

  • dataRange: string
  • plotByRows: bool
  • cellReferenceMode: CellReferenceMode?

Returns any