System.Windows.Forms.ListBox.KeySearch C# (CSharp) Méthode

KeySearch() private méthode

private KeySearch ( Keys key ) : bool
key Keys
Résultat bool
		private bool KeySearch (Keys key)
		{
			char c = (char) key;
			if (!Char.IsLetterOrDigit (c))
				return false;

			int idx = FindString (c.ToString (), SelectedIndex);
			if (idx != ListBox.NoMatches)
				SelectedIndex = idx;

			return true;
		}