# FarPoint.Win.Spread.FocusProcess

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_FocusProcess" data-uid="FarPoint.Win.Spread.FocusProcess" class="text-break">FocusProcess Class
</h1>
  <div class="markdown level0 summary"><p>Represents a special <a class="xref" href="FarPoint.Win.Spread.ValidateActionBase.html">ValidateActionBase</a> that keeps the focus on the validating <a class="xref" href="FarPoint.Win.Spread.Cell.html">Cell</a> when validation fails.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="FarPoint.Win.Spread.ValidateActionBase.html">ValidateActionBase</a></div>
    <div class="level2"><span class="xref">FocusProcess</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.icloneable">ICloneable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="FarPoint.Win.Spread.INamedObject.html">INamedObject</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_FocusProcess_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(FpSpread), &quot;FocusProcess.png&quot;)]
[TypeConverter(typeof(FocusProcess._a))]
public class FocusProcess : ValidateActionBase, ICloneable, ISerializable, ISerializeSupport, INamedObject</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(FpSpread), &quot;FocusProcess.png&quot;)&gt;
&lt;TypeConverter(GetType(FocusProcess._a))&gt;
Public Class FocusProcess
    Inherits ValidateActionBase
    Implements ICloneable, ISerializable, ISerializeSupport, INamedObject</code></pre>
  </div>
  <h5 id="FarPoint_Win_Spread_FocusProcess_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
      This action is similar to setting cancel to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> in the CellValidating event. If you change the <a class="xref" href="FarPoint.Win.Spread.ValidateActionBase.DoActionReason.html#FarPoint_Win_Spread_ValidateActionBase_DoActionReason">DoActionReason</a>, the behavior of this action is special. For example, if you add <a class="xref" href="FarPoint.Win.Spread.ValidateReasons.html#FarPoint_Win_Spread_ValidateReasons_EndEdit">EndEdit</a> and <a class="xref" href="FarPoint.Win.Spread.ValidateReasons.html#FarPoint_Win_Spread_ValidateReasons_CancelEdit">CancelEdit</a>, the validating cell cannot end edit mode even if you do not leave the current cell.
    </p>
<p>
      This action only takes effect when setting the <a class="xref" href="FarPoint.Win.Spread.FocusProcess.PreventFocusLeave.html#FarPoint_Win_Spread_FocusProcess_PreventFocusLeave">PreventFocusLeave</a> property value to <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a>.
    </p>
</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_FocusProcess__ctor" data-uid="FarPoint.Win.Spread.FocusProcess.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.-ctor.html#FarPoint_Win_Spread_FocusProcess__ctor">FocusProcess()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.FocusProcess.html">FocusProcess</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess__ctor_System_Boolean_" data-uid="FarPoint.Win.Spread.FocusProcess.#ctor(System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.-ctor.html#FarPoint_Win_Spread_FocusProcess__ctor_System_Boolean_">FocusProcess(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.FocusProcess.html">FocusProcess</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.FocusProcess.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.-ctor.html#FarPoint_Win_Spread_FocusProcess__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">FocusProcess(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of this class.</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_FocusProcess_PreventFocusLeave" data-uid="FarPoint.Win.Spread.FocusProcess.PreventFocusLeave">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.PreventFocusLeave.html#FarPoint_Win_Spread_FocusProcess_PreventFocusLeave">PreventFocusLeave</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to keep the focus on the validating <a class="xref" href="FarPoint.Win.Spread.Cell.html">Cell</a>.</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_FocusProcess_Clone" data-uid="FarPoint.Win.Spread.FocusProcess.Clone">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.Clone.html#FarPoint_Win_Spread_FocusProcess_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates an exact copy of the current <a class="xref" href="FarPoint.Win.Spread.FocusProcess.html">FocusProcess</a>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess_Deserialize_System_Xml_XmlNodeReader_" data-uid="FarPoint.Win.Spread.FocusProcess.Deserialize(System.Xml.XmlNodeReader)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.Deserialize.html#FarPoint_Win_Spread_FocusProcess_Deserialize_System_Xml_XmlNodeReader_">Deserialize(XmlNodeReader)</a>
        </td>
        <td class="markdown level1 summary"><p>Loads the object from XML.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess_DoAction_FarPoint_Win_Spread_ValidateActionContext_" data-uid="FarPoint.Win.Spread.FocusProcess.DoAction(FarPoint.Win.Spread.ValidateActionContext)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.DoAction.html#FarPoint_Win_Spread_FocusProcess_DoAction_FarPoint_Win_Spread_ValidateActionContext_">DoAction(ValidateActionContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Executes the current <a class="xref" href="FarPoint.Win.Spread.FocusProcess.html">FocusProcess</a> using the <code class="paramref">context</code>.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.FocusProcess.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.GetObjectData.html#FarPoint_Win_Spread_FocusProcess_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the object data.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FocusProcess_Serialize_System_Xml_XmlTextWriter_" data-uid="FarPoint.Win.Spread.FocusProcess.Serialize(System.Xml.XmlTextWriter)">
          <a class="xref" href="FarPoint.Win.Spread.FocusProcess.Serialize.html#FarPoint_Win_Spread_FocusProcess_Serialize_System_Xml_XmlTextWriter_">Serialize(XmlTextWriter)</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the object to XML.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="FarPoint.Win.Spread.ValidateActionBase.html">ValidateActionBase</a></div>
  </div>

</div>
