KeyboardExtensionMethods

public static class KeyboardExtensionMethods
Provides extension methods for keyboards.

Methods

HasCommand

#Example
public static bool HasCommand(this Keys keys)
Given a keys instance, determines whether it contains the OS specific CONTROL modifier. That is; CONTROL on Windows or COMMAND (i.e. APPLICATION) on Mac.
keys (Keys)

HasOption

#Example
public static bool HasOption(this Keys keys)
Given a keys instance, determines whether it contains the OS specific ALT modifier. That is; ALT on Windows or OPTION on Mac.
keys (Keys)

HasShift

#Example
public static bool HasShift(this Keys keys)
Given a keys instance, determines whether it contains the SHIFT modifier.
keys (Keys)

ImpliedSelectionMode

#
public static SelectionMode ImpliedSelectionMode()
Gets the implied selection mode from the current keyboard state.
Selection mode.

IsControl

#Example
public static bool IsControl(this Keys modifiers)
Determines whether the modifiers match the CONTROL key. That is; CONTROL on Windows or COMMAND (i.e. APPLICATION) on Mac.
modifiers (Keys)

IsShift

#Example
public static bool IsShift(this Keys modifiers)
Determines whether the modifiers match the SHIFT key.
modifiers (Keys)

SelectionMode

#Example
public static SelectionMode SelectionMode(this Control control)
Gets the implied selection mode.
control (Control)Control. This field may actually be null.
Selection mode.

SelectionMode

#Example
public static SelectionMode SelectionMode(this MouseEventArgs mouseEventArgs)
Gets the implied selection mode.
mouseEventArgs (MouseEventArgs)Event arguments.
Selection mode.

SelectionMode

#Example
public static SelectionMode SelectionMode(this ResponseMouseArgs args)
Gets the implied selection mode.
args (ResponseMouseArgs)Event arguments.
Selection mode.

SelectionMode

#Example
public static SelectionMode SelectionMode(this WindowSelectionEventArgs windowSelectionEventArgs)
Gets the implied selection mode.
windowSelectionEventArgs (WindowSelectionEventArgs)Event arguments.
Selection mode.