Class
FloatingChartShape

Floating shape that embeds a chart within a worksheet, supporting visual data representation with positioning and sizing.

Definition

Constructors

FloatingChartShape(Worksheet, CellIndex, CellRange, SeriesRangesOrientation, params ChartType[])

Initializes a new instance of the FloatingChartShape class.

Declaration

cs-api-definition
public FloatingChartShape(Worksheet worksheet, CellIndex cellIndex, CellRange chartDataRange, SeriesRangesOrientation seriesRangesOrientation, params ChartType[] chartTypes)

Parameters

worksheet

Worksheet

The worksheet that the shape is associated with.

cellIndex

CellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRange

CellRange

The range containing the chart data.

seriesRangesOrientation

SeriesRangesOrientation

A value indicating whether the series of the chart will refer to vertical or horizontal ranges or the direction will be determined automatically.

chartTypes

ChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

FloatingChartShape(Worksheet, CellIndex, CellRange, params ChartType[])

Initializes a new instance of the FloatingChartShape class.

Declaration

cs-api-definition
public FloatingChartShape(Worksheet worksheet, CellIndex cellIndex, CellRange chartDataRange, params ChartType[] chartTypes)

Parameters

worksheet

Worksheet

The worksheet that the shape is associated with.

cellIndex

CellIndex

The cell index where the top left corner of the shape is positioned.

chartDataRange

CellRange

The range containing the chart data.

chartTypes

ChartType[]

The types of chart that will be created. Passing more than one type will create a combo chart.

Properties

Chart

Gets or sets the chart displayed by this shape, defining all visual and data series.

Declaration

cs-api-definition
public DocumentChart Chart { get; set; }

Property Value

DocumentChart

Fill

Gets or sets the background fill styling for the chart shape.

Declaration

cs-api-definition
public Fill Fill { get; set; }

Property Value

Fill

FloatingShapeType

Gets the shape type, always Chart for this shape.

Declaration

cs-api-definition
public override FloatingShapeType FloatingShapeType { get; }

Property Value

FloatingShapeType

Overrides FloatingShapeBase.FloatingShapeType

Outline

Gets the border outline styling for the chart shape.

Declaration

cs-api-definition
public Outline Outline { get; }

Property Value

Outline