# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ClearCommand

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ClearCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ClearCommand*">ClearCommand Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ClearCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ClearCommand*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ClearCommand" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ClearCommand">ClearCommand</h4>
<div class="markdown level1 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.ClearCommand.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ClearCommand">ClearCommand</a> command, which requests that <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.html">GcComboBox</a> to clear all the text.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static RoutedUICommand ClearCommand { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared ReadOnly Property ClearCommand As RoutedUICommand</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.routeduicommand">RoutedUICommand</a></td>
      <td><p>The requested command. Default key gesture is <b>F2</b>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_ClearCommand_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
        This command can only be executed when <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement.isenabled">IsEnabled</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">true</a> 
        and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.IsReadOnly.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcComboBox_IsReadOnly">IsReadOnly</a> is <a href="https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool">false</a>.
      </p>
<p>
        This command is natively supported by <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcComboBox.html">GcComboBox</a> and the command parameter is ignored.
      </p>
</div>
</div>
