DeleteCells
简述
删除指定范围内的单元格。
DeleteCells(Col1;Row1;Col2;Row2:Integer;DelOpt:TDelOpt);
| 名称 | 类型 | 说明 |
|---|
| Col1 | Integer | 整数,范围列的起始位置,从0开始。 |
| Row1 | Integer | 整数,范围行的起始位置,从0开始。 |
| Col2 | Integer | 整数,范围列的止点位置,从0开始。 |
| Row2 | Integer | 整数,范围行的止点位置,从0开始。 |
| DelOpt | TDelOpt | 整数,删除单元格时的选项,取值如下,多项并选则选项取值相加。
|
取值 |
说明 | |
1 |
CellValues 单元格值 | |
2 |
Formats 格式 | |
4 |
Comments 批注 | |
8 |
DataValidations | |
16 |
ConditionalFormats | |
32 |
Autofilters | |
64 |
Drawing |
|
| 返回 | | 无。 |