Aspose::Cells::Drawing::ShapeCollection::DeleteInRange method

ShapeCollection::DeleteInRange method

Delete shapes in the range.Comment shapes will not be deleted.

void Aspose::Cells::Drawing::ShapeCollection::DeleteInRange(const CellArea &ca)
ParameterTypeDescription
caconst CellArea&The range.If the shapes are contained in the range, they will be removed.

Examples

    //add first shape
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//add second shape
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

CellArea area3;
area3.StartColumn = 0;
area3.StartRow = 5;
area3.EndColumn = 5;
area3.EndRow = 8;

//del
shapes.DeleteInRange(area3);

See Also