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.
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 |
Returns
- Keys:
The filtered
Keys.
See Also
GetApplicableCommandLinks(Keys)
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.
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
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
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()
Extension Methods
- ObjectExtensions.TryConvertToDouble(object, out double)
- ObjectExtensions.TryConvertToDouble(object, IFormatProvider, out double)