# GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.ProcessCommand

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.ProcessCommand*">ProcessCommand Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand_" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.ProcessCommand*"></a>
<h4 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand" data-uid="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.ProcessCommand">ProcessCommand</h4>
<div class="markdown level1 summary"><p>Represents the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.ProcessCommand.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand">ProcessCommand</a> command, which requests that calculator to process the operation the command parameter describes.</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 ProcessCommand { get; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared ReadOnly Property ProcessCommand 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. The default key gestures depends on the command parameter.</p>
<table><thead><tr><th class="term">Key Combination</th><th class="description">Calculator Operation</th></tr></thead><tbody><tr><td class="term">Esc, Ctrl+Delete</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_C">C</a>. Clears the current calculation.</td></tr><tr><td class="term">Delete</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_CE">CE</a>. Clears the displayed number.</td></tr><tr><td class="term">Back</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Backspace">Backspace</a>. Deletes the last digit of the displayed number.</td></tr><tr><td class="term">D0, NumPad0</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit0">Digit0</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D1, NumPad1</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit1">Digit1</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D2, NumPad2</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit2">Digit2</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D3, NumPad3</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit3">Digit3</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D4, NumPad4</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit4">Digit4</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D5, NumPad5</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit5">Digit5</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D6, NumPad6</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit6">Digit6</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D7, NumPad7</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit7">Digit7</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D8, NumPad8</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit8">Digit8</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">D9, NumPad9</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Digit9">Digit9</a>. Puts this number in the calculator display.</td></tr><tr><td class="term">Decimal, OemComma, OemPeriod</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_DecimalPoint">DecimalPoint</a>. Inserts a decimal point.</td></tr><tr><td class="term">F9</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Sign">Sign</a>. Changes the sign of the displayed number.</td></tr><tr><td class="term">Add, Shift+OemPlus</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Add">Add</a>. Adds</td></tr><tr><td class="term">Subtract, Shift+OemMinus</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Subtract">Subtract</a>. Subtracts.</td></tr><tr><td class="term">Multiply, Shift+Oem1</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Multiply">Multiply</a>. Multiplies.</td></tr><tr><td class="term">Divide, OemQuestion</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Divide">Divide</a>. Divides.</td></tr><tr><td class="term">Shift+D5</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Percentage">Percentage</a>. Displays the result of multiplication as a percentage. Enter one number, click *, enter the second number, and then click %. For example, 50 * 25% will display 12.5. You can also perform operations with percentages. Enter one number, click the operator (+, -, *, or /), enter the second number, click %, and then click =.</td></tr><tr><td class="term">OemTilde</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_SquareRoot">SquareRoot</a>. Calculates the square root of the displayed number.</td></tr><tr><td class="term">R</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Reciprocal">Reciprocal</a>. Calculates the reciprocal of the displayed number.</td></tr><tr><td class="term">Return, Shift+OemMinus</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_Equal">Equal</a>. Performs any operation on the previous two numbers. To repeat the last operation, click = again.</td></tr><tr><td class="term">Ctrl+L</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_MemoryClear">MemoryClear</a>. Clears any number stored in memory.</td></tr><tr><td class="term">Ctrl+R</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_MemoryRecall">MemoryRecall</a>. Recalls the number stored in memory. The number remains in memory.</td></tr><tr><td class="term">Ctrl+M</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_MemorySave">MemorySave</a>. Stores the displayed number in memory.</td></tr><tr><td class="term">Ctrl+P</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_MemoryPlus">MemoryPlus</a>. Adds the displayed number to any number already in memory but does not display the sum of these numbers.</td></tr><tr><td class="term">Ctrl+Q</td><td class="description"><a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.CalculatorOperation.html#GrapeCity_Wpf_SpreadSheet_CellType_Editors_CalculatorOperation_MemoryMinus">MemoryMinus</a>. Subtracts the displayed number from any number already in memory but does not display the result of the subtraction.</td></tr></tbody></table>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>
        This command is natively supported by GrapeCity.Windows.InputMan.GcDropDownCalculator.
        The command parameter is required.
      </p>
</div>
<h5 id="GrapeCity_Wpf_SpreadSheet_CellType_Editors_GcDropDownCalculator_ProcessCommand_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 an InputMan Control.
      </p>
<p>
        InputMan 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 classes of controls.
      </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.GcDropDownCalculator.html">GcDropDownCalculator</a>, 
        where a <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.html">GcDropDownCalculator</a> is the target of the command. 
        All the logic that defines how the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.html">GcDropDownCalculator</a> performs the operations is built into the <a class="xref" href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.GcDropDownCalculator.html">GcDropDownCalculator</a> control. 
      </p>

</div>
