## ShapeCollection.DeleteInRange method

删除范围内的形状。注释形状不会被删除。

```csharp
public void DeleteInRange(CellArea ca)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| ca | CellArea | 范围。如果形状包含在范围内，它们将被删除。 |

### 例子

```csharp

[C#]
//添加第一个形状
shapes.AddRectangle(2, 0, 2, 0, 50, 50);
//添加第二个形状
shapes.AddRectangle(6, 0, 2, 0, 30, 30);

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

//删除
shapes.DeleteInRange(area3);
```

### 也可以看看

* struct [CellArea](../../../aspose.cells/cellarea)
* class [ShapeCollection](../../shapecollection)
* 命名空间 [Aspose.Cells.Drawing](../../shapecollection)
* 部件 [Aspose.Cells](../../../)

<!-- DO NOT EDIT: generated by xmldocmd for Aspose.Cells.dll -->
