XlsChartShape
AddShapeInChart Method
 | 
Adds a shape to the chart in Excel with the specified type, placement behavior, and dimensions.
Namespace:
Spire.Xls.Core.Spreadsheet.Shapes
Assembly:
Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
 
public IShape AddShapeInChart(
	ExcelShapeType type,
	ResizeBehaveType placement,
	int left,
	int top,
	int height,
	int width
)
 
Public Function AddShapeInChart ( 
	type As ExcelShapeType,
	placement As ResizeBehaveType,
	left As Integer,
	top As Integer,
	height As Integer,
	width As Integer
) As IShape
 
public:
IShape^ AddShapeInChart(
	ExcelShapeType type, 
	ResizeBehaveType placement, 
	int left, 
	int top, 
	int height, 
	int width
)
 
member AddShapeInChart : 
type : ExcelShapeType * 
placement : ResizeBehaveType * 
left : int * 
top : int * 
height : int * 
width : int -> IShape 
 
 
 
Parameters
- 
type
 
- 
Type:
Spire.Xls
ExcelShapeType
The type of shape to add, specified by the ExcelShapeType enumeration.
 
- 
placement
 
- 
Type:
Spire.Xls
ResizeBehaveType
The behavior of the shape when the chart is resized, specified by the ResizeBehaveType enumeration.
 
- 
left
 
- 
Type:
System
Int32
The distance from the left edge of the chart to the left edge of the shape, in points.
 
- 
top
 
- 
Type:
System
Int32
The distance from the top edge of the chart to the top edge of the shape, in points.
 
- 
height
 
- 
Type:
System
Int32
The height of the shape, in points.
 
- 
width
 
- 
Type:
System
Int32
The width of the shape, in points.
 
Return Value
Type:
IShape
An IShape object representing the added shape.
 
See Also