# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.SetZeroCommand

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.SetZeroCommand*">SetZeroCommand Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.SetZeroCommand*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.SetZeroCommand">SetZeroCommand</h4>
<div class="markdown level1 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.SetZeroCommand.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand">SetZeroCommand</a> command, which requests that the current value is set to Zero.</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 SetZeroCommand { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared ReadOnly Property SetZeroCommand 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 routed command to set zero to <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>The default key gesture for this command is F2.</p>
</div>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcNumber_SetZeroCommand_examples">Examples</h5>
<p>
        The following example shows how to hook up a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.routedcommand">RoutedCommand</a> to a InputMan Control.
      </p>
<p>
        InputMan controls provides a library of commands which application programmers encounter regularly. 
        The classes which comprise the command library are: <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.FieldsEditingCommands.html">FieldsEditingCommands</a>, 
        <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalendarCommands.html">CalendarCommands</a> and <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.ControlNavigationCommands.html">ControlNavigationCommands</a>. 
        And some commands are defined in some controls class.
      </p>
<p>
        Many controls in InputMan do have built in support for some of the commands in the command library. 
        <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.html">GcTextBox</a>, for example, supports many of the application edit commands such as 
        <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.applicationcommands.paste">Paste</a>, <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.applicationcommands.copy">Copy</a>, 
        <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.applicationcommands.cut">Cut</a> and <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.applicationcommands.undo">Undo</a>. 
        The application developer does not have to do anything special to get these commands to work with these controls. 
        If the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcTextBox.html">GcTextBox</a> is the command target when the command is executed, 
        it will handle the command using the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.commandbinding">CommandBinding</a> that is built into the control. 
      </p>
<p>
        The following shows how to use <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.input.keybinding">KeyBinding</a> as the command source for the command defined on <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a>, where a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a> is the target of the command. All the logic that defines how the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a> performs the operations is built into the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcNumber.html">GcNumber</a> control. 
      </p>

</div>
