ClassChordModifier
Represents the state of the modifier keys (SHIFT, CTRL, and ALT) in a Chord.
Definition
Namespace:Telerik.WinControls.Keyboard
Assembly:Telerik.WinControls.dll
Syntax:
[TypeConverter(typeof(ChordModifierConverter))]
public class ChordModifier : IComparable, INotifyPropertyChanged
Inheritance: objectChordModifier
Implements:
Constructors
ChordModifier()
Initializes a new instance of the ChordModifier class with default settings.
Declaration
public ChordModifier()
ChordModifier(ChordModifier)
Initializes a new instance of the ChordModifier using data provided by another instance.
Declaration
public ChordModifier(ChordModifier chordModifier)
Parameters
chordModifier
ChordModifier(Keys)
Initializes a new instance of the ChordModifier using data provided by Keys input.
ChordModifier(bool, bool, bool)
Initializes a new instance of the ChordModifier using explicit setting for every property.
Properties
AltModifier
Gets a value indicating if the ALT modifier key is in a pressed state.
ControlModifier
Gets a value indicating if the CTRL modifier key is in a pressed state.
IsEmpty
Gets a value indicating if any of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
ShiftModifier
Gets a value indicating if the SHIFT modifier key is in a pressed state.
Methods
CompareTo(object)
Compares this instance to a specified object or ChordModifier and returns an indication of their relative values.
Declaration
public int CompareTo(object obj)
Parameters
obj
An object to compare, or a null reference (Nothing in Visual Basic).
Returns
A signed number indicating the relative values of this instance and value.
|
Return Value |
Description |
|---|---|
|
Less than zero |
This instance is less than value. |
|
Zero |
This instance is equal to value. |
|
Greater than zero |
This instance is greater than value. -or- value is a null reference (Nothing in Visual Basic). |
Exceptions
Implements
GetModifiers(ChordModifier, Keys)
Updates a ChordModifier instance based on a Keys input value
Declaration
public static ChordModifier GetModifiers(ChordModifier tempModifier, Keys pressedKey)
Parameters
tempModifier
ChordModifier instance to update
pressedKey
Keys input value
Returns
ChordModifier instance with updated states
GetModifiers(Keys)
Creates new ChordModifier instance based on a Keys input value
Declaration
public static ChordModifier GetModifiers(Keys pressedKey)
Parameters
pressedKey
Keys input value
Returns
ChordModifier instance
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
OnNotifyPropertyChanged(string)
Raises the PropertyChanged event
Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property
Events
PropertyChanged
Notifies clients that a property value has changed.
Declaration
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements