Volume Control
Application-specific hotkeys for Windows
|
Event arguments for hotkey action events. More...
Public Member Functions | |
HotkeyPressedEventArgs () | |
Creates a new HotkeyPressedEventArgs instance without any action settings. More... | |
HotkeyPressedEventArgs (bool defaultHandledValue) | |
Creates a new HotkeyPressedEventArgs instance without any action settings. More... | |
HotkeyPressedEventArgs (IActionSettingInstance[] actionSettings) | |
Creates a new HotkeyPressedEventArgs instance with the specified actionSettings . More... | |
HotkeyPressedEventArgs (IActionSettingInstance[] actionSettings, bool defaultHandledValue) | |
Creates a new HotkeyPressedEventArgs instance with the specified actionSettings . More... | |
IActionSettingInstance | GetSetting (string name, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the action setting with the specified name . More... | |
IActionSettingInstance | GetSetting (string name, Type valueType, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the action setting with the specified name and valueType . More... | |
IActionSettingInstance< T > | GetSetting< T > (string name, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the action setting with the specified name and value type. More... | |
bool | TryGetSetting (string name, StringComparison stringComparison, out IActionSettingInstance setting) |
Attempts to get the action setting with the specified name . More... | |
bool | TryGetSetting (string name, out IActionSettingInstance setting) |
bool | TryGetSetting (string name, Type valueType, StringComparison stringComparison, out IActionSettingInstance setting) |
Attempts to get the action setting with the specified name and valueType . More... | |
bool | TryGetSetting (string name, Type valueType, out IActionSettingInstance setting) |
bool | TryGetSetting< T > (string name, StringComparison stringComparison, out IActionSettingInstance< T > setting) |
Gets the action setting with the specified name and value type. More... | |
bool | TryGetSetting< T > (string name, out IActionSettingInstance< T > setting) |
object | GetValue (string name, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the value of the action setting with the specified name if it is enabled; otherwise gets the setting's default value. More... | |
object | GetValue (string name, Type valueType, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the value of the action setting with the specified name and valueType if it is enabled; otherwise gets the setting's default value. More... | |
T | GetValue< T > (string name, StringComparison stringComparison=StringComparison.Ordinal) |
Gets the value of the action setting with the specified name and value type if it is enabled; otherwise gets the setting's default value. More... | |
bool | TryGetValue (string name, StringComparison stringComparison, out object value) |
Attempts to get the value of the action setting with the specified name if it is enabled; otherwise gets the setting's default value. More... | |
bool | TryGetValue (string name, out object value) |
bool | TryGetValue (string name, Type valueType, StringComparison stringComparison, out object value) |
Attempts to get the value of the action setting with the specified name and valueType if it is enabled; otherwise gets the setting's default value. More... | |
bool | TryGetValue (string name, Type valueType, out object value) |
bool | TryGetValue< T > (string name, StringComparison stringComparison, out T value) |
Attempts to get the value of the action setting with the specified name and value type if it is enabled; otherwise gets the setting's default value. More... | |
object | GetValueOrDefault (string name, StringComparison stringComparison, object defaultValue=default!) |
Gets the value of the action setting with the specified name if it isn't null or disabled. More... | |
object | GetValueOrDefault (string name, object defaultValue=default!) |
object | GetValueOrDefault (string name, Type valueType, StringComparison stringComparison, object defaultValue=default!) |
Gets the value of the action setting with the specified name and valueType if it isn't null or disabled. More... | |
object | GetValueOrDefault (string name, Type valueType, object defaultValue=default!) |
T | GetValueOrDefault< T > (string name, StringComparison stringComparison, T defaultValue=default!) |
Gets the value of the action setting with the specified name and value type if it isn't null or disabled. More... | |
T | GetValueOrDefault< T > (string name, T defaultValue=default!) |
Properties | |
IActionSettingInstance[] | Settings [get] |
Gets the array of ActionSettings configured for the hotkey that triggered the event. More... | |
Event arguments for hotkey action events.
VolumeControl.Core.Input.HotkeyPressedEventArgs.HotkeyPressedEventArgs | ( | ) |
Creates a new HotkeyPressedEventArgs instance without any action settings.
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
VolumeControl.Core.Input.HotkeyPressedEventArgs.HotkeyPressedEventArgs | ( | bool | defaultHandledValue | ) |
Creates a new HotkeyPressedEventArgs instance without any action settings.
defaultHandledValue | The default value for the HandledEventArgs.Handled property. |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
VolumeControl.Core.Input.HotkeyPressedEventArgs.HotkeyPressedEventArgs | ( | IActionSettingInstance[] | actionSettings | ) |
Creates a new HotkeyPressedEventArgs instance with the specified actionSettings .
actionSettings | The array of settings to send to the action method. |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
VolumeControl.Core.Input.HotkeyPressedEventArgs.HotkeyPressedEventArgs | ( | IActionSettingInstance[] | actionSettings, |
bool | defaultHandledValue | ||
) |
Creates a new HotkeyPressedEventArgs instance with the specified actionSettings .
actionSettings | The array of settings to send to the action method. |
defaultHandledValue | The default value for the HandledEventArgs.Handled property. |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
IActionSettingInstance VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting | ( | string | name, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the action setting with the specified name .
name | The name of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
ActionSettingNotFoundException | There is no action setting with the specified name . |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue(), and VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting().
IActionSettingInstance VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting | ( | string | name, |
Type | valueType, | ||
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the action setting with the specified name and valueType .
name | The name of the setting to get. |
valueType | The value type of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
ActionSettingNotFoundException | There is no action setting with the specified name & valueType . |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
IActionSettingInstance<T> VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting< T > | ( | string | name, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the action setting with the specified name and value type.
T | The value type of the setting to get. |
name | The name of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
ActionSettingNotFoundException | There is no action setting with the specified name and value type. |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.Settings.
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue< T >(), and VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting< T >().
object VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue | ( | string | name, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the value of the action setting with the specified name if it is enabled; otherwise gets the setting's default value.
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
ActionSettingNotFoundException | There is no action setting with the specified name . |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting().
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetValue().
object VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue | ( | string | name, |
Type | valueType, | ||
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the value of the action setting with the specified name and valueType if it is enabled; otherwise gets the setting's default value.
name | The name of the setting to get. |
valueType | The value type of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
ActionSettingNotFoundException | There is no action setting with the specified name & valueType . |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting().
T VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue< T > | ( | string | name, |
StringComparison | stringComparison = StringComparison.Ordinal |
||
) |
Gets the value of the action setting with the specified name and value type if it is enabled; otherwise gets the setting's default value.
T | The value type of the action setting to get. |
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
ActionSettingNotFoundException | There is no action setting with the specified name and value type. |
References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting< T >().
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetValue< T >().
object VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValueOrDefault | ( | string | name, |
StringComparison | stringComparison, | ||
object | defaultValue = default! |
||
) |
Gets the value of the action setting with the specified name if it isn't null
or disabled.
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
defaultValue | The value to return if the setting wasn't found, or if its value is null . |
null
; otherwise defaultValue .References VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting().
object VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValueOrDefault | ( | string | name, |
Type | valueType, | ||
StringComparison | stringComparison, | ||
object | defaultValue = default! |
||
) |
Gets the value of the action setting with the specified name and valueType if it isn't null
or disabled.
name | The name of the action setting to get the value of. |
valueType | The value type of the setting to get. |
stringComparison | The type of StringComparison to use when comparing strings. |
defaultValue | The value to return if the setting wasn't found, or if its value is null . |
null
; otherwise defaultValue .References VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting().
T VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValueOrDefault< T > | ( | string | name, |
StringComparison | stringComparison, | ||
T | defaultValue = default! |
||
) |
Gets the value of the action setting with the specified name and value type if it isn't null
or disabled.
T | The value type of the action setting to get. |
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
defaultValue | The value to return if the setting wasn't found, or if its value is null . |
null
; otherwise defaultValue .References VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting< T >().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting | ( | string | name, |
StringComparison | stringComparison, | ||
out IActionSettingInstance | setting | ||
) |
Attempts to get the action setting with the specified name .
name | The name of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
setting | IActionSettingInstance with the specified name . |
true
when the setting was found and isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting().
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValueOrDefault().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting | ( | string | name, |
Type | valueType, | ||
StringComparison | stringComparison, | ||
out IActionSettingInstance | setting | ||
) |
Attempts to get the action setting with the specified name and valueType .
name | The name of the setting to get. |
valueType | The value type of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
setting | IActionSettingInstance with the specified name & valueType . |
true
when the setting was found and isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetSetting< T > | ( | string | name, |
StringComparison | stringComparison, | ||
out IActionSettingInstance< T > | setting | ||
) |
Gets the action setting with the specified name and value type.
T | The value type of the setting to get. |
name | The name of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
setting | IActionSettingInstance with the specified name and value type. |
true
when the setting was found and isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting< T >().
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValueOrDefault< T >().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetValue | ( | string | name, |
StringComparison | stringComparison, | ||
out object | value | ||
) |
Attempts to get the value of the action setting with the specified name if it is enabled; otherwise gets the setting's default value.
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
value | Value of the setting with the specified name . |
true
when the setting was found and the value isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetValue | ( | string | name, |
Type | valueType, | ||
StringComparison | stringComparison, | ||
out object | value | ||
) |
Attempts to get the value of the action setting with the specified name and valueType if it is enabled; otherwise gets the setting's default value.
name | The name of the setting to get. |
valueType | The value type of the setting to get. |
stringComparison | The comparison type to use when performing string comparisons. |
value | Value of the setting with the specified name & valueType . |
true
when the setting was found and the value isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue().
bool VolumeControl.Core.Input.HotkeyPressedEventArgs.TryGetValue< T > | ( | string | name, |
StringComparison | stringComparison, | ||
out T | value | ||
) |
Attempts to get the value of the action setting with the specified name and value type if it is enabled; otherwise gets the setting's default value.
T | The value type of the action setting to get. |
name | The name of the action setting to get the value of. |
stringComparison | The type of StringComparison to use when comparing strings. |
value | Value of the setting with the specified name and value type. |
true
when the setting was found and the value isn't null
; otherwise false
.References VolumeControl.Core.Input.HotkeyPressedEventArgs.GetValue< T >().
|
get |
Gets the array of ActionSettings configured for the hotkey that triggered the event.
Referenced by VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting(), VolumeControl.Core.Input.HotkeyPressedEventArgs.GetSetting< T >(), and VolumeControl.Core.Input.HotkeyPressedEventArgs.HotkeyPressedEventArgs().