Click or drag to resize
ExcelChartCollectionAddT Method (AnchorCell, Double, Double, LengthUnit)
Adds a new chart to the worksheet which moves but doesn't size with cells.

Namespace: GemBox.Spreadsheet.Charts
Assembly: GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1000
Syntax
public T Add<T>(
	AnchorCell positionFrom,
	double width,
	double height,
	LengthUnit unit
)
where T : ExcelChart

Parameters

positionFrom
Type: GemBox.SpreadsheetAnchorCell
The chart's position.
width
Type: SystemDouble
The chart's width.
height
Type: SystemDouble
The chart's height.
unit
Type: GemBox.SpreadsheetLengthUnit
The length unit in which all length parameters are specified.

Type Parameters

T
The type of the chart deriving from ExcelChart type.

Return Value

Type: T
A new chart added to the worksheet which moves but doesn't size with cells.
Remarks
Position.Mode of a newly added chart will be Move.
See Also