# C1.Win.InputPanel.InputButton

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_InputPanel_InputButton" data-uid="C1.Win.InputPanel.InputButton" class="text-break">InputButton Class
</h1>
  <div class="markdown level0 summary"><p>Represents a button element in a <a class="xref" href="C1.Win.InputPanel.C1InputPanel.html">C1InputPanel</a> control.</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="C1.Win.InputPanel.InputComponent.html">InputComponent</a></div>
    <div class="level4"><span class="xref">InputButton</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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><a class="xref" href="C1.Win.InputPanel.IInputXmlSerializable.html">IInputXmlSerializable</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.Items.IUiaButton.html">IUiaButton</a></div>
    <div><a class="xref" href="../C1.Win.10/C1.Win.Accessibility.Items.BaseInterfaces.IUiaInvokeProvider.html">IUiaInvokeProvider</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.InputPanel.html">C1.Win.InputPanel</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.InputPanel.10.dll</h6>
  <h5 id="C1_Win_InputPanel_InputButton_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class InputButton : InputComponent, IBindableComponent, IComponent, IDisposable, IInputXmlSerializable, IUiaButton, IUiaInvokeProvider</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class InputButton
    Inherits InputComponent
    Implements IBindableComponent, IComponent, IDisposable, IInputXmlSerializable, IUiaButton, IUiaInvokeProvider</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="C1_Win_InputPanel_InputButton__ctor" data-uid="C1.Win.InputPanel.InputButton.#ctor">
          <a class="xref" href="C1.Win.InputPanel.InputButton.-ctor.html#C1_Win_InputPanel_InputButton__ctor">InputButton()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of <a class="xref" href="C1.Win.InputPanel.InputButton.html">InputButton</a>.</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="C1_Win_InputPanel_InputButton_AutoEllipsis" data-uid="C1.Win.InputPanel.InputButton.AutoEllipsis">
          <a class="xref" href="C1.Win.InputPanel.InputButton.AutoEllipsis.html#C1_Win_InputPanel_InputButton_AutoEllipsis">AutoEllipsis</a>
        </td>
        <td class="markdown level1 summary"><p>Enables the automatic handling of text that extends beyond the width of the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_CheckOnClick" data-uid="C1.Win.InputPanel.InputButton.CheckOnClick">
          <a class="xref" href="C1.Win.InputPanel.InputButton.CheckOnClick.html#C1_Win_InputPanel_InputButton_CheckOnClick">CheckOnClick</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the button should toggle its pressed state when it is clicked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_Command" data-uid="C1.Win.InputPanel.InputButton.Command">
          <a class="xref" href="C1.Win.InputPanel.InputButton.Command.html#C1_Win_InputPanel_InputButton_Command">Command</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.icommand">ICommand</a> whose <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.icommand.execute">Execute(object)</a>
method will be called when the <a class="xref" href="C1.Win.InputPanel.InputButton.OnClick.html#C1_Win_InputPanel_InputButton_OnClick_System_EventArgs_">OnClick(EventArgs)</a> event gets invoked.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_CommandParameter" data-uid="C1.Win.InputPanel.InputButton.CommandParameter">
          <a class="xref" href="C1.Win.InputPanel.InputButton.CommandParameter.html#C1_Win_InputPanel_InputButton_CommandParameter">CommandParameter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the parameter to pass to the <a class="xref" href="C1.Win.InputPanel.InputButton.Command.html#C1_Win_InputPanel_InputButton_Command">Command</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_DialogResult" data-uid="C1.Win.InputPanel.InputButton.DialogResult">
          <a class="xref" href="C1.Win.InputPanel.InputButton.DialogResult.html#C1_Win_InputPanel_InputButton_DialogResult">DialogResult</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the dialog-box result produced in a modal form by clicking the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_Image" data-uid="C1.Win.InputPanel.InputButton.Image">
          <a class="xref" href="C1.Win.InputPanel.InputButton.Image.html#C1_Win_InputPanel_InputButton_Image">Image</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image associated with the <a class="xref" href="C1.Win.InputPanel.InputButton.html">InputButton</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ImageAlign" data-uid="C1.Win.InputPanel.InputButton.ImageAlign">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ImageAlign.html#C1_Win_InputPanel_InputButton_ImageAlign">ImageAlign</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the alignment of the image within the bounds specified by the <a class="xref" href="C1.Win.InputPanel.InputButton.ImageSize.html#C1_Win_InputPanel_InputButton_ImageSize">ImageSize</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ImageIndex" data-uid="C1.Win.InputPanel.InputButton.ImageIndex">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ImageIndex.html#C1_Win_InputPanel_InputButton_ImageIndex">ImageIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the image in the ImageList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ImageKey" data-uid="C1.Win.InputPanel.InputButton.ImageKey">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ImageKey.html#C1_Win_InputPanel_InputButton_ImageKey">ImageKey</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the image key in the ImageList.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ImageScaling" data-uid="C1.Win.InputPanel.InputButton.ImageScaling">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ImageScaling.html#C1_Win_InputPanel_InputButton_ImageScaling">ImageScaling</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets how the image will be scaled to fit within the bounds specified by the <a class="xref" href="C1.Win.InputPanel.InputButton.ImageSize.html#C1_Win_InputPanel_InputButton_ImageSize">ImageSize</a> property.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ImageSize" data-uid="C1.Win.InputPanel.InputButton.ImageSize">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ImageSize.html#C1_Win_InputPanel_InputButton_ImageSize">ImageSize</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the size of the image that will be displayed on the button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_Pressed" data-uid="C1.Win.InputPanel.InputButton.Pressed">
          <a class="xref" href="C1.Win.InputPanel.InputButton.Pressed.html#C1_Win_InputPanel_InputButton_Pressed">Pressed</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the button is pressed.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_Text" data-uid="C1.Win.InputPanel.InputButton.Text">
          <a class="xref" href="C1.Win.InputPanel.InputButton.Text.html#C1_Win_InputPanel_InputButton_Text">Text</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text associated with the component.</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="C1_Win_InputPanel_InputButton_Dispose_System_Boolean_" data-uid="C1.Win.InputPanel.InputButton.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.InputPanel.InputButton.Dispose.html#C1_Win_InputPanel_InputButton_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Clean up any resources being used.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_OnClick_System_EventArgs_" data-uid="C1.Win.InputPanel.InputButton.OnClick(System.EventArgs)">
          <a class="xref" href="C1.Win.InputPanel.InputButton.OnClick.html#C1_Win_InputPanel_InputButton_OnClick_System_EventArgs_">OnClick(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.InputPanel.InputComponent.Click.html">Click</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_OnPressedChanged_System_EventArgs_" data-uid="C1.Win.InputPanel.InputButton.OnPressedChanged(System.EventArgs)">
          <a class="xref" href="C1.Win.InputPanel.InputButton.OnPressedChanged.html#C1_Win_InputPanel_InputButton_OnPressedChanged_System_EventArgs_">OnPressedChanged(EventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Raises the <a class="xref" href="C1.Win.InputPanel.InputButton.PressedChanged.html">PressedChanged</a> event.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_PerformClick" data-uid="C1.Win.InputPanel.InputButton.PerformClick">
          <a class="xref" href="C1.Win.InputPanel.InputButton.PerformClick.html#C1_Win_InputPanel_InputButton_PerformClick">PerformClick()</a>
        </td>
        <td class="markdown level1 summary"><p>Generates a Click event for a button.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ResetPressed" data-uid="C1.Win.InputPanel.InputButton.ResetPressed">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ResetPressed.html#C1_Win_InputPanel_InputButton_ResetPressed">ResetPressed()</a>
        </td>
        <td class="markdown level1 summary"></td>
      </tr>
      <tr>
        <td id="C1_Win_InputPanel_InputButton_ShouldSerializePressed" data-uid="C1.Win.InputPanel.InputButton.ShouldSerializePressed">
          <a class="xref" href="C1.Win.InputPanel.InputButton.ShouldSerializePressed.html#C1_Win_InputPanel_InputButton_ShouldSerializePressed">ShouldSerializePressed()</a>
        </td>
        <td class="markdown level1 summary"></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="C1_Win_InputPanel_InputButton_PressedChanged" data-uid="C1.Win.InputPanel.InputButton.PressedChanged">
          <a class="xref" href="C1.Win.InputPanel.InputButton.PressedChanged.html">PressedChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fires when the <a class="xref" href="C1.Win.InputPanel.InputButton.Pressed.html#C1_Win_InputPanel_InputButton_Pressed">Pressed</a> property is changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
