## DataColumnCollection::IndexOf method


Looks for column in collection.

```cpp
int32_t System::Data::DataColumnCollection::IndexOf(const System::String &columnName)
```


| Parameter | Type | Description |
| --- | --- | --- |
| columnName | const System::String\& | Name of column to look for. |

### ReturnValue

Column index if found, otherwise -1.

## See Also

* Class [String](../../../system/string/)
* Class [DataColumnCollection](../)
* Namespace [System::Data](../../)
* Library [Aspose.TeX for C++](../../../)
