# FarPoint.Win.Spread.FormulaTextBox

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_FormulaTextBox" data-uid="FarPoint.Win.Spread.FormulaTextBox" class="text-break">FormulaTextBox Class
</h1>
  <div class="markdown level0 summary"><p>Represents the floating formula editor.</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="https://learn.microsoft.com/dotnet/api/system.marshalbyrefobject">MarshalByRefObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.component">Component</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control">Control</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.richtextbox">RichTextBox</a></div>
    <div class="level6"><span class="xref">RichTextBoxEx</span></div>
    <div class="level7"><span class="xref">FormulaTextBox</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.idroptarget">IDropTarget</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isynchronizeinvoke">ISynchronizeInvoke</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.iwin32window">IWin32Window</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.ibindablecomponent">IBindableComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.icomponent">IComponent</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</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_FormulaTextBox_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[ToolboxBitmap(typeof(FpSpread), &quot;FormulaTextBoxV7.png&quot;)]
public class FormulaTextBox : RichTextBoxEx, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;ToolboxBitmap(GetType(FpSpread), &quot;FormulaTextBoxV7.png&quot;)&gt;
Public Class FormulaTextBox
    Inherits RichTextBoxEx
    Implements IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable</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_FormulaTextBox__ctor" data-uid="FarPoint.Win.Spread.FormulaTextBox.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.-ctor.html#FarPoint_Win_Spread_FormulaTextBox__ctor">FormulaTextBox()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new floating formula editor bar.</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_FormulaTextBox_AllowUndo" data-uid="FarPoint.Win.Spread.FormulaTextBox.AllowUndo">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.AllowUndo.html#FarPoint_Win_Spread_FormulaTextBox_AllowUndo">AllowUndo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets allow undo.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_AutoComplete" data-uid="FarPoint.Win.Spread.FormulaTextBox.AutoComplete">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.AutoComplete.html#FarPoint_Win_Spread_FormulaTextBox_AutoComplete">AutoComplete</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to allow the automatic completion of text in the formula text box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_AutoIndent" data-uid="FarPoint.Win.Spread.FormulaTextBox.AutoIndent">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.AutoIndent.html#FarPoint_Win_Spread_FormulaTextBox_AutoIndent">AutoIndent</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the formula is automatically formatted by wrapping to multiple lines with indentation.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_FormatWidthLimit" data-uid="FarPoint.Win.Spread.FormulaTextBox.FormatWidthLimit">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.FormatWidthLimit.html#FarPoint_Win_Spread_FormulaTextBox_FormatWidthLimit">FormatWidthLimit</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum width limit for formatting.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_IndentSize" data-uid="FarPoint.Win.Spread.FormulaTextBox.IndentSize">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.IndentSize.html#FarPoint_Win_Spread_FormulaTextBox_IndentSize">IndentSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of Indent.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_ShouldResetFormat" data-uid="FarPoint.Win.Spread.FormulaTextBox.ShouldResetFormat">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.ShouldResetFormat.html#FarPoint_Win_Spread_FormulaTextBox_ShouldResetFormat">ShouldResetFormat</a>
        </td>
        <td class="markdown level1 summary"><p>Gets should reset format.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_Text" data-uid="FarPoint.Win.Spread.FormulaTextBox.Text">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.Text.html#FarPoint_Win_Spread_FormulaTextBox_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the current text in the formula text box.</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_FormulaTextBox_Attach_FarPoint_Win_Spread_FpSpread_" data-uid="FarPoint.Win.Spread.FormulaTextBox.Attach(FarPoint.Win.Spread.FpSpread)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.Attach.html#FarPoint_Win_Spread_FormulaTextBox_Attach_FarPoint_Win_Spread_FpSpread_">Attach(FpSpread)</a>
        </td>
        <td class="markdown level1 summary"><p>Attaches the specified Spread component to the formula text box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_Detach" data-uid="FarPoint.Win.Spread.FormulaTextBox.Detach">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.Detach.html#FarPoint_Win_Spread_FormulaTextBox_Detach">Detach()</a>
        </td>
        <td class="markdown level1 summary"><p>Detaches the Spread component from the formula text box.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_Dispose_System_Boolean_" data-uid="FarPoint.Win.Spread.FormulaTextBox.Dispose(System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.Dispose.html#FarPoint_Win_Spread_FormulaTextBox_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases the unmanaged resources used by the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textbox">TextBox</a> and optionally releases the managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_GetVerticalScrollMaximum_System_Windows_Forms_RichTextBox_" data-uid="FarPoint.Win.Spread.FormulaTextBox.GetVerticalScrollMaximum(System.Windows.Forms.RichTextBox)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.GetVerticalScrollMaximum.html#FarPoint_Win_Spread_FormulaTextBox_GetVerticalScrollMaximum_System_Windows_Forms_RichTextBox_">GetVerticalScrollMaximum(RichTextBox)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_GetVerticalScrollMinimum_System_Windows_Forms_RichTextBox_" data-uid="FarPoint.Win.Spread.FormulaTextBox.GetVerticalScrollMinimum(System.Windows.Forms.RichTextBox)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.GetVerticalScrollMinimum.html#FarPoint_Win_Spread_FormulaTextBox_GetVerticalScrollMinimum_System_Windows_Forms_RichTextBox_">GetVerticalScrollMinimum(RichTextBox)</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_IsInputKey_System_Windows_Forms_Keys_" data-uid="FarPoint.Win.Spread.FormulaTextBox.IsInputKey(System.Windows.Forms.Keys)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.IsInputKey.html#FarPoint_Win_Spread_FormulaTextBox_IsInputKey_System_Windows_Forms_Keys_">IsInputKey(Keys)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified key is an input key or a special key that requires preprocessing.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_IsVerticalScrollBarVisible_System_Windows_Forms_RichTextBox_" data-uid="FarPoint.Win.Spread.FormulaTextBox.IsVerticalScrollBarVisible(System.Windows.Forms.RichTextBox)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.IsVerticalScrollBarVisible.html#FarPoint_Win_Spread_FormulaTextBox_IsVerticalScrollBarVisible_System_Windows_Forms_RichTextBox_">IsVerticalScrollBarVisible(RichTextBox)</a>
        </td>
        <td class="markdown level1 summary"><p>Checks if the vertical scrollbar is currently visible in the RichTextBox.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnEnter_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnEnter(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnEnter.html#FarPoint_Win_Spread_FormulaTextBox_OnEnter_System_EventArgs_">OnEnter(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.enter">Enter</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnGotFocus_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnGotFocus(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnGotFocus.html#FarPoint_Win_Spread_FormulaTextBox_OnGotFocus_System_EventArgs_">OnGotFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.gotfocus">GotFocus</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnKeyDown_System_Windows_Forms_KeyEventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnKeyDown(System.Windows.Forms.KeyEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnKeyDown.html#FarPoint_Win_Spread_FormulaTextBox_OnKeyDown_System_Windows_Forms_KeyEventArgs_">OnKeyDown(KeyEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.keydown">KeyDown</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnKeyPress_System_Windows_Forms_KeyPressEventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnKeyPress(System.Windows.Forms.KeyPressEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnKeyPress.html#FarPoint_Win_Spread_FormulaTextBox_OnKeyPress_System_Windows_Forms_KeyPressEventArgs_">OnKeyPress(KeyPressEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.keypress">KeyPress</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnLayout_System_Windows_Forms_LayoutEventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnLayout(System.Windows.Forms.LayoutEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnLayout.html#FarPoint_Win_Spread_FormulaTextBox_OnLayout_System_Windows_Forms_LayoutEventArgs_">OnLayout(LayoutEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.layout">Layout</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnLostFocus_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnLostFocus(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnLostFocus.html#FarPoint_Win_Spread_FormulaTextBox_OnLostFocus_System_EventArgs_">OnLostFocus(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.control.lostfocus">LostFocus</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnMouseDown_System_Windows_Forms_MouseEventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnMouseDown(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnMouseDown.html#FarPoint_Win_Spread_FormulaTextBox_OnMouseDown_System_Windows_Forms_MouseEventArgs_">OnMouseDown(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the MouseDown event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnMouseUp_System_Windows_Forms_MouseEventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnMouseUp(System.Windows.Forms.MouseEventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnMouseUp.html#FarPoint_Win_Spread_FormulaTextBox_OnMouseUp_System_Windows_Forms_MouseEventArgs_">OnMouseUp(MouseEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the OnMouseUp event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnParentChanged_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnParentChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnParentChanged.html#FarPoint_Win_Spread_FormulaTextBox_OnParentChanged_System_EventArgs_">OnParentChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the System.Windows.Forms.Control.ParentChanged event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnSelectionChanged_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnSelectionChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnSelectionChanged.html#FarPoint_Win_Spread_FormulaTextBox_OnSelectionChanged_System_EventArgs_">OnSelectionChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.richtextbox.selectionchanged">SelectionChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnSizeChanged_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnSizeChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnSizeChanged.html#FarPoint_Win_Spread_FormulaTextBox_OnSizeChanged_System_EventArgs_">OnSizeChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the System.Windows.Forms.Control.SizeChanged event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_OnTextChanged_System_EventArgs_" data-uid="FarPoint.Win.Spread.FormulaTextBox.OnTextChanged(System.EventArgs)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.OnTextChanged.html#FarPoint_Win_Spread_FormulaTextBox_OnTextChanged_System_EventArgs_">OnTextChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <span class="xref">TextChanged</span> event.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_ProcessDialogKey_System_Windows_Forms_Keys_" data-uid="FarPoint.Win.Spread.FormulaTextBox.ProcessDialogKey(System.Windows.Forms.Keys)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.ProcessDialogKey.html#FarPoint_Win_Spread_FormulaTextBox_ProcessDialogKey_System_Windows_Forms_Keys_">ProcessDialogKey(Keys)</a>
        </td>
        <td class="markdown level1 summary"><p>Processes a dialog key.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_ScaleControl_System_Drawing_SizeF_System_Windows_Forms_BoundsSpecified_" data-uid="FarPoint.Win.Spread.FormulaTextBox.ScaleControl(System.Drawing.SizeF,System.Windows.Forms.BoundsSpecified)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.ScaleControl.html#FarPoint_Win_Spread_FormulaTextBox_ScaleControl_System_Drawing_SizeF_System_Windows_Forms_BoundsSpecified_">ScaleControl(SizeF, BoundsSpecified)</a>
        </td>
        <td class="markdown level1 summary"><p>Scales the location, size, padding, and margin of a control.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_FormulaTextBox_WndProc_System_Windows_Forms_Message__" data-uid="FarPoint.Win.Spread.FormulaTextBox.WndProc(System.Windows.Forms.Message@)">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.WndProc.html#FarPoint_Win_Spread_FormulaTextBox_WndProc_System_Windows_Forms_Message__">WndProc(ref Message)</a>
        </td>
        <td class="markdown level1 summary"><p>Handles windows messages.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</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_FormulaTextBox_FormulaChanged" data-uid="FarPoint.Win.Spread.FormulaTextBox.FormulaChanged">
          <a class="xref" href="FarPoint.Win.Spread.FormulaTextBox.FormulaChanged.html">FormulaChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Raised when the formula is changed. This is different from TextChanged since if
the text is changed manually, the FormulaChanged event is not raised.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
