## DocumentPropertyCollection::IndexOf(const U16String\&) method


Gets the index of a property by name.

```cpp
int32_t Aspose::Cells::Properties::DocumentPropertyCollection::IndexOf(const U16String &name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const U16String\& | The case-insensitive name of the property. |

## ReturnValue

The zero based index. Negative value if not found.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [U16String](../../../aspose.cells/u16string/)
* Class [DocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
## DocumentPropertyCollection::IndexOf(const char16_t*) method


Gets the index of a property by name.

```cpp
int32_t Aspose::Cells::Properties::DocumentPropertyCollection::IndexOf(const char16_t *name)
```


| Parameter | Type | Description |
| --- | --- | --- |
| name | const char16_t* | The case-insensitive name of the property. |

## ReturnValue

The zero based index. Negative value if not found.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Class [DocumentPropertyCollection](../)
* Namespace [Aspose::Cells::Properties](../../)
* Library [Aspose.Cells for C++](../../../)
