Table of Contents

Class KeyList

Namespace
Alternet.Editor
Assembly
Alternet.Editor.v9.dll

Represents list of key or its combinations with attached actions.

public class KeyList : IKeyList
Inheritance
KeyList
Implements

Remarks

KeyList class is used to dynamically link key sequences with executing some actions within Edit control. You can use this class to customize reaction on pressing certain keys sequences in the Edit control.

Constructors

KeyList(ISyntaxEdit)

Initializes a new instance of the KeyList class with a specified owner.

Properties

EventData

Represents array of event handlers associated with keys.

Handlers

Represents an event handlers collection which contains elements that can be used as a particular action attached to key or key combination from the KeyList.

Methods

Add(Keys, KeyEvent)

Adds a new key to key collection with specified action.

Add(Keys, KeyEvent, KeyEventEx, object, int, int)

Adds a new key to key collection with specified parameters.

Add(Keys, KeyEvent, int, int)

Adds a new key to key collection with specified parameters.

Add(Keys, KeyEventEx, object)

Adds a new key to key collection with specified parameters.

Add(Keys, KeyEventEx, object, int, int)

Adds a new key to key collection with specified parameters.

AddNormal(Keys, KeyEvent)

Adds a new key to key collection with specified parameters and default (normal) state and leave state.

AddNormal(Keys, KeyEventEx, object)

Adds a new key to key collection with specified parameters and default (normal) state and leave state.

Clear()

Removes all elements from the key list.

ExecuteKey(Keys, ref int)

Executes action or extended action attached to the specified key.

FindKey(Keys, int)

Indicates whether given key locates within the collection.

Remove(Keys)

Removes given key from the key collection.

Remove(Keys, int)

Removes given key from the key collection.

RemoveState(int)

Removes the given state with all keys related to it.