ChordModifier
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
Initializes a new instance of the ChordModifier class with default settings.
public ChordModifier()
Initializes a new instance of the ChordModifier using data provided by another instance.
Initializes a new instance of the ChordModifier using data provided by Keys input.
Properties
Gets a value indicating if the ALT modifier key is in a pressed state.
public bool AltModifier { get; set; }
Gets a value indicating if the CTRL modifier key is in a pressed state.
public bool ControlModifier { get; set; }
Gets a value indicating if any of the modifier keys (SHIFT, CTRL, and ALT) is in a pressed state.
public bool IsEmpty { get; }
Gets a value indicating if the SHIFT modifier key is in a pressed state.
public bool ShiftModifier { get; set; }
Methods
Removes all data from the ChordModifier.
public void Clear()
Compares this instance to a specified object or ChordModifier and returns an indication of their relative values.
public int CompareTo(object 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:
Updates a ChordModifier instance based on a Keys input value
public static ChordModifier GetModifiers(ChordModifier tempModifier, Keys pressedKey)
ChordModifier instance to update
pressedKeyKeysKeys input value
Returns:ChordModifier instance with updated states
Creates new ChordModifier instance based on a Keys input value
public static ChordModifier GetModifiers(Keys pressedKey)
Keys input value
Returns:ChordModifier instance
protected virtual void OnNotifyPropertyChanged(PropertyChangedEventArgs e)
Raises the PropertyChanged event
protected virtual void OnNotifyPropertyChanged(string propertyName)
The name of the property
Events
Notifies clients that a property value has changed.
[Browsable(false)]
public event PropertyChangedEventHandler PropertyChanged
Implements: