Class ChordModifier
Represents the state of the modifier keys (SHIFT, CTRL, and ALT) in a Chord.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.Keyboard
Assembly: Telerik.WinControls.dll
Syntax
public class ChordModifier : IComparable, INotifyPropertyChanged
Constructors
ChordModifier()
Initializes a new instance of the ChordModifier class with default settings.
Declaration
public ChordModifier()
ChordModifier(Boolean, Boolean, Boolean)
Initializes a new instance of the ChordModifier using explicit setting for every property.
Declaration
public ChordModifier(bool altModifier, bool controlModifier, bool shiftModifier)
Parameters
System.Boolean
altModifier
|
System.Boolean
controlModifier
|
System.Boolean
shiftModifier
|
ChordModifier(Keys)
Initializes a new instance of the ChordModifier using data provided by Keys input.
Declaration
public ChordModifier(Keys pressedKey)
Parameters
System.Windows.Forms.Keys
pressedKey
|
ChordModifier(ChordModifier)
Initializes a new instance of the ChordModifier using data provided by another instance.
Declaration
public ChordModifier(ChordModifier chordModifier)
Parameters
ChordModifier
chordModifier
|
Properties
AltModifier
Gets a value indicating if the ALT modifier key is in a pressed state.
Declaration
public bool AltModifier { get; set; }
Property Value
System.Boolean
|
ControlModifier
Gets a value indicating if the CTRL modifier key is in a pressed state.
Declaration
public bool ControlModifier { get; set; }
Property Value
System.Boolean
|
IsEmpty
Gets a value indicating if any of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
Declaration
public bool IsEmpty { get; }
Property Value
System.Boolean
|
ShiftModifier
Gets a value indicating if the SHIFT modifier key is in a pressed state.
Declaration
public bool ShiftModifier { get; set; }
Property Value
System.Boolean
|
Methods
Clear()
Removes all data from the ChordModifier.
Declaration
public void Clear()
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
System.Object
obj
An object to compare, or a null reference (Nothing in Visual Basic). |
Returns
System.Int32
A signed number indicating the relative values of this instance and value.
Exceptions |
Implements
GetModifiers(Keys)
Creates new ChordModifier instance based on a Keys input value
Declaration
public static ChordModifier GetModifiers(Keys pressedKey)
Parameters
System.Windows.Forms.Keys
pressedKey
Keys input value |
Returns
ChordModifier
ChordModifier instance |
GetModifiers(ChordModifier, Keys)
Updates a ChordModifier instance based on a Keys input value
Declaration
public static ChordModifier GetModifiers(ChordModifier tempModifier, Keys pressedKey)
Parameters
ChordModifier
tempModifier
ChordModifier instance to update |
System.Windows.Forms.Keys
pressedKey
Keys input value |
Returns
ChordModifier
ChordModifier instance with updated states |
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.ComponentModel.PropertyChangedEventArgs
e
|
OnNotifyPropertyChanged(String)
Raises the PropertyChanged event
Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
System.String
propertyName
The name of the property |
Events
PropertyChanged
Notifies clients that a property value has changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.ComponentModel.PropertyChangedEventHandler
|