mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
18 lines
432 B
Markdown
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)
|
|
```
|