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.
|
System.
|
System.
|
ChordModifier(Keys)
Initializes a new instance of the ChordModifier using data provided by Keys input.
Declaration
public ChordModifier(Keys pressedKey)
Parameters
System.
|
ChordModifier(ChordModifier)
Initializes a new instance of the ChordModifier using data provided by another instance.
Declaration
public ChordModifier(ChordModifier chordModifier)
Parameters
Chord
|
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.
|
ControlModifier
Gets a value indicating if the CTRL modifier key is in a pressed state.
Declaration
public bool ControlModifier { get; set; }
Property Value
System.
|
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.
|
ShiftModifier
Gets a value indicating if the SHIFT modifier key is in a pressed state.
Declaration
public bool ShiftModifier { get; set; }
Property Value
System.
|
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. An object to compare, or a null reference (Nothing in Visual Basic). |
Returns
System. A signed number indicating the relative values of this instance and value.
|
Implements
GetModifiers(Keys)
Creates new ChordModifier instance based on a Keys input value
Declaration
public static ChordModifier GetModifiers(Keys pressedKey)
Parameters
System. Keys input value |
Returns
Chord 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
Chord ChordModifier instance to update |
System. Keys input value |
Returns
Chord ChordModifier instance with updated states |
OnNotifyPropertyChanged(PropertyChangedEventArgs)
Declaration
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Parameters
System.
|
OnNotifyPropertyChanged(String)
Raises the PropertyChanged event
Declaration
protected virtual void OnNotifyPropertyChanged(string propertyName)
Parameters
System. The name of the property |
Events
PropertyChanged
Notifies clients that a property value has changed.
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
System.
|