[]
        
(Showing Draft Content)

FarPoint.Win.Spread.Keystroke

Keystroke Struct

Represents a key being typed on the keyboard.
It contains both a character code for the key and a modifier (Alt, Ctrl, Shift, or a combination).

Implements
Namespace: FarPoint.Win.Spread
Assembly: FarPoint.Win.Spread.dll
Syntax
public struct Keystroke : ISerializable
Public Structure Keystroke
    Implements ISerializable

Constructors

Name Description
Keystroke(char)

Creates a new keystroke with the specified character.

Keystroke(SerializationInfo, StreamingContext)

Creates a new keystroke from serialization.

Keystroke(Keys, Keys)

Creates a new keystroke with a specified a key code and modifier keys.

Keystroke(Keys, Keys, bool)

Creates a new keystroke with a specified a key code, modifier keys, and whether the keystroke is active on key release.

Properties

Name Description
KeyChar

Gets the character defined by this keystroke.

KeyCode

Gets the key code defined by this keystroke.

Modifiers

Gets the modifier keys defined by this keystroke.

OnKeyRelease

Gets whether the keystroke is active on key release.

Methods

Name Description
Equals(object)

Determines whether an object is equal to the current one.

GetObjectData(SerializationInfo, StreamingContext)

Populates the SerializationInfo class with information about the keystroke (Keystroke object).

ToString()

Returns a string that represents the keystroke.

Operators

Name Description
operator ==(Keystroke, Keystroke)

Determines whether two keystrokes (KeyStroke structures) are equal.

operator !=(Keystroke, Keystroke)

Determines whether two keystrokes (KeyStroke structures) are not equal.