##  index_of(self, name) {#str}




```python

def index_of(self, name):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| name | str |  |


##  index_of(self, item, index) {#aspose.cells.properties.DocumentProperty-int}
搜索指定的对象并返回从指定索引延伸到最后一个元素的数组列表中元素范围内第一个出现的从零开始的索引。


### 返回

如果找到，则为从 startIndex 延伸到最后一个元素的数组列表中元素范围内第一次出现的值的从零开始的索引；否则为 -1。


```python

def index_of(self, item, index):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| item | [`DocumentProperty`](/cells/python-net/zh/aspose.cells.properties/documentproperty) |要在数组列表中定位的对象。该值可以为 null。|
| index | int |搜索的起始索引从零开始。0（零）在空列表中有效。|


##  index_of(self, item, index, count) {#aspose.cells.properties.DocumentProperty-int-int}
搜索指定的对象并返回从指定索引开始并包含指定数量元素的数组列表中元素范围内第一次出现的从零开始的索引。


### 返回

如果找到，则为从 startIndex 开始且包含 count 个元素的数组列表中元素范围内第一次出现的值的从零开始的索引；否则为 -1。


```python

def index_of(self, item, index, count):
    ...
```


|范围|类型|描述|
| :- | :- | :- |
| item | [`DocumentProperty`](/cells/python-net/zh/aspose.cells.properties/documentproperty) |要在数组列表中定位的对象。该值可以为 null。|
| index | int |搜索的起始索引从零开始。0（零）在空列表中有效。|
| count | int |要搜索的部分中的元素数量。|



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