ShapeCollection.DeleteInRange

ShapeCollection.DeleteInRange method

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

public void DeleteInRange(CellArea ca)
ParameterTypeDescription
caCellAreaThe range.If the shapes are contained in the range, they will be removed.

Examples


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

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

//del
shapes.DeleteInRange(area3);

See Also