# FarPoint.Win.Spread.TouchStripButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_TouchStripButton" data-uid="FarPoint.Win.Spread.TouchStripButton" class="text-break">TouchStripButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a tool strip button for a touch device.</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.toolstripitem">ToolStripItem</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.toolstripbutton">ToolStripButton</a></div>
    <div class="level5"><span class="xref">TouchStripButton</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.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_TouchStripButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class TouchStripButton : ToolStripButton, IDropTarget, IComponent, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class TouchStripButton
    Inherits ToolStripButton
    Implements IDropTarget, IComponent, IDisposable</code></pre>
  </div>
  <h5 id="FarPoint_Win_Spread_TouchStripButton_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>The touch strip button changes the default value of some properties, such as TextImageRelation, ImageAlign, TextAlign, DisplayStyle, and so on.</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_TouchStripButton__ctor" data-uid="FarPoint.Win.Spread.TouchStripButton.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.TouchStripButton.-ctor.html#FarPoint_Win_Spread_TouchStripButton__ctor">TouchStripButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="FarPoint.Win.Spread.TouchStripButton.html">TouchStripButton</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_TouchStripButton__ctor_System_String_System_Drawing_Image_" data-uid="FarPoint.Win.Spread.TouchStripButton.#ctor(System.String,System.Drawing.Image)">
          <a class="xref" href="FarPoint.Win.Spread.TouchStripButton.-ctor.html#FarPoint_Win_Spread_TouchStripButton__ctor_System_String_System_Drawing_Image_">TouchStripButton(string, Image)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a <a class="xref" href="FarPoint.Win.Spread.TouchStripButton.html">TouchStripButton</a> instance.</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_TouchStripButton_GetPreferredSize_System_Drawing_Size_" data-uid="FarPoint.Win.Spread.TouchStripButton.GetPreferredSize(System.Drawing.Size)">
          <a class="xref" href="FarPoint.Win.Spread.TouchStripButton.GetPreferredSize.html#FarPoint_Win_Spread_TouchStripButton_GetPreferredSize_System_Drawing_Size_">GetPreferredSize(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves the size of a rectangular area into which a System.Windows.Forms.ToolStripButton can be fitted.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
