--- title: IKeymanPackageContentFiles::IndexOf Method --- ## Introduction The `IKeymanPackageContentFiles::IndexOf` method returns the zero-based index of the file in the collection that has a filename matching the `Filename` parameter. If no file matches, then the method returns `-1`. ## Specification ``` clike long IndexOf(string Filename) ```