##  filter(self, type, sheet_index) {#aspose.cells.NameScopeType-int}
按范围获取所有定义的名称。


### 返回




```python

def filter(self, type, sheet_index):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| type | [`NameScopeType`](/cells/python-net/zh/aspose.cells/namescopetype) |范围类型。|
| sheet_index | int |工作表索引。<br/>仅当范围类型为 [`NameScopeType.WORKSHEET`](/cells/python-net/zh/aspose.cells/namescopetype#WORKSHEET) 时有效 |



### 也可以看看
* 模块[`aspose.cells`](../../)
* 类 [`NameCollection`](/cells/python-net/zh/aspose.cells/namecollection)
