In This Article

CommandLinkCollection Class

Encapsulates a collection of CommandLink items.

public class CommandLinkCollection : List<CommandLink>
Inheritance:
object List<CommandLink> object

Constructors

CommandLinkCollection()

Initializes an instance of the class.

public CommandLinkCollection()

See Also

Methods

FilterModifierKeys(Keys)

Filters out the CTRL, SHIFT, and ALT modifier keys from a Keys specification.

public static Keys FilterModifierKeys(Keys keyCode)
Parameter Type Description
keyCode Keys

The Keys to filter.

Returns

Keys:

The filtered Keys.

See Also

Returns an array of the applicable CommandLink objects for the specified criteria.

public CommandLink[] GetApplicableCommandLinks(Keys keyCode)
Parameter Type Description
keyCode Keys

The keyboard code of the key that is pressed.

Returns

CommandLink[]:

An array of the applicable CommandLink objects for the specified criteria.

See Also

GetCurrentModifierKeys()

Returns the currently-pressed modifier keys.

public static ModifierKeys GetCurrentModifierKeys()

Returns

ModifierKeys

See Also

GetModifierKeys(Keys)

Returns the modifier keys.

public static ModifierKeys GetModifierKeys(Keys keyCode)
Parameter Type Description
keyCode Keys

The keyboard code of the key that is pressed.

Returns

ModifierKeys

See Also

IndexOf(Command)

Searches for a CommandLink for the specified Command and returns the zero-based index of the first occurrence within the entire collection.

public virtual int IndexOf(Command command)
Parameter Type Description
command Command

The Command to locate in the collection.

Returns

int:

The zero-based index of the first occurrence of a CommandLink for the specified Command within the entire collection, if found; otherwise, -1.

See Also

Inherited Members

Extension Methods

See Also