Click or drag to resize

RectangleCollection AddRectangle Method

Adds a rectangle shape to the specified position with given dimensions and type.

Namespace: Spire.Xls.Core.Spreadsheet.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public IRectangleShape AddRectangle(
	int row,
	int column,
	int height,
	int width,
	RectangleShapeType rectShapeType
)

Parameters

row
Type: System Int32
The row index where the rectangle will be placed.
column
Type: System Int32
The column index where the rectangle will be placed.
height
Type: System Int32
The height of the rectangle.
width
Type: System Int32
The width of the rectangle.
rectShapeType
Type: Spire.Xls RectangleShapeType
The type of the rectangle shape.

Return Value

Type: IRectangleShape
An instance of IRectangleShape representing the added rectangle.

Implements

IRectangleShapes AddRectangle(Int32, Int32, Int32, Int32, RectangleShapeType)
See Also