# FarPoint.Win.Spread.Keystroke

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_Keystroke" data-uid="FarPoint.Win.Spread.Keystroke" class="text-break">Keystroke Struct
</h1>
  <div class="markdown level0 summary"><p>Represents a key being typed on the keyboard.<br>
It contains both a character code for the key and a modifier
(Alt, Ctrl, Shift, or a combination).</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.html">FarPoint.Win.Spread</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_Keystroke_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct Keystroke : ISerializable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure Keystroke
    Implements ISerializable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke__ctor_System_Char_" data-uid="FarPoint.Win.Spread.Keystroke.#ctor(System.Char)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.-ctor.html#FarPoint_Win_Spread_Keystroke__ctor_System_Char_">Keystroke(char)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new keystroke with the specified character.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Keystroke.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.-ctor.html#FarPoint_Win_Spread_Keystroke__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">Keystroke(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new keystroke from serialization.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke__ctor_System_Windows_Forms_Keys_System_Windows_Forms_Keys_" data-uid="FarPoint.Win.Spread.Keystroke.#ctor(System.Windows.Forms.Keys,System.Windows.Forms.Keys)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.-ctor.html#FarPoint_Win_Spread_Keystroke__ctor_System_Windows_Forms_Keys_System_Windows_Forms_Keys_">Keystroke(Keys, Keys)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new keystroke with a specified a key code and modifier keys.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke__ctor_System_Windows_Forms_Keys_System_Windows_Forms_Keys_System_Boolean_" data-uid="FarPoint.Win.Spread.Keystroke.#ctor(System.Windows.Forms.Keys,System.Windows.Forms.Keys,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.-ctor.html#FarPoint_Win_Spread_Keystroke__ctor_System_Windows_Forms_Keys_System_Windows_Forms_Keys_System_Boolean_">Keystroke(Keys, Keys, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new keystroke with a specified a key code, modifier keys,
and whether the keystroke is active on key release.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_KeyChar" data-uid="FarPoint.Win.Spread.Keystroke.KeyChar">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.KeyChar.html#FarPoint_Win_Spread_Keystroke_KeyChar">KeyChar</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the character defined by this keystroke.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_KeyCode" data-uid="FarPoint.Win.Spread.Keystroke.KeyCode">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.KeyCode.html#FarPoint_Win_Spread_Keystroke_KeyCode">KeyCode</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the key code defined by this keystroke.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_Modifiers" data-uid="FarPoint.Win.Spread.Keystroke.Modifiers">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.Modifiers.html#FarPoint_Win_Spread_Keystroke_Modifiers">Modifiers</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the modifier keys defined by this keystroke.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_OnKeyRelease" data-uid="FarPoint.Win.Spread.Keystroke.OnKeyRelease">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.OnKeyRelease.html#FarPoint_Win_Spread_Keystroke_OnKeyRelease">OnKeyRelease</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether the keystroke is active on key release.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_Equals_System_Object_" data-uid="FarPoint.Win.Spread.Keystroke.Equals(System.Object)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.Equals.html#FarPoint_Win_Spread_Keystroke_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether an object is equal to the current one.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Keystroke.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.GetObjectData.html#FarPoint_Win_Spread_Keystroke_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Populates the SerializationInfo class with information about the keystroke (<a class="xref" href="FarPoint.Win.Spread.Keystroke.html">Keystroke</a> object).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_ToString" data-uid="FarPoint.Win.Spread.Keystroke.ToString">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.ToString.html#FarPoint_Win_Spread_Keystroke_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a string that represents the keystroke.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_op_Equality_FarPoint_Win_Spread_Keystroke_FarPoint_Win_Spread_Keystroke_" data-uid="FarPoint.Win.Spread.Keystroke.op_Equality(FarPoint.Win.Spread.Keystroke,FarPoint.Win.Spread.Keystroke)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.op_Equality.html#FarPoint_Win_Spread_Keystroke_op_Equality_FarPoint_Win_Spread_Keystroke_FarPoint_Win_Spread_Keystroke_">operator ==(Keystroke, Keystroke)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two keystrokes (KeyStroke structures) are equal.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Keystroke_op_Inequality_FarPoint_Win_Spread_Keystroke_FarPoint_Win_Spread_Keystroke_" data-uid="FarPoint.Win.Spread.Keystroke.op_Inequality(FarPoint.Win.Spread.Keystroke,FarPoint.Win.Spread.Keystroke)">
          <a class="xref" href="FarPoint.Win.Spread.Keystroke.op_Inequality.html#FarPoint_Win_Spread_Keystroke_op_Inequality_FarPoint_Win_Spread_Keystroke_FarPoint_Win_Spread_Keystroke_">operator !=(Keystroke, Keystroke)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two keystrokes (KeyStroke structures) are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
