spiegel-keyman/windows/docs/engine/api/IKeymanKeyboards/IndexOf.md
2024-10-31 10:17:54 +07:00

18 lines
432 B
Markdown

---
title: IKeymanKeyboards::IndexOf Method
---
## Introduction
The `IKeymanKeyboards::IndexOf` method returns the zero-based index of
the keyboard in the array that has an ID matching the `ID` parameter.
The ID is formed from the base name of the keyboard, i.e. excluding path
and extension, and is case insensitive.
If no keyboard matches, then the method returns `-1`.
## Specification
``` clike
long IndexOf(string ID)
```