SpreadsheetFormulaBarControl.ExecuteResourceNavigatorAction(NavigatorButtonType) Method
Executes the command corresponding to one of the SpreadsheetFormularBarControl’s buttons.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.1.dll
NuGet Package: DevExpress.Win.Spreadsheet
Declaration
Parameters
Name | Type | Description |
---|---|---|
type | NavigatorButtonType | One of the NavigatorButtonType enumeration values that is the type of button displayed in the Formula Bar. |
Returns
Type | Description |
---|---|
Boolean | true if the command is executed; otherwise, false. |
Remarks
By default, the Formula Bar contains three buttons, each of which has a default action. Use the ExecuteResourceNavigatorAction method to perform the action bound to the particular button.
The table below describes buttons located in the Formula Bar, gives the NavigatorButtonType type of each button, and the event that is raised when an end-user clicks a specific button.
Button | Description | Button Type | Event |
---|---|---|---|
Cancel | Cancels the user input. | NavigatorButtonType.CancelEdit | SpreadsheetFormulaBarControl.CancelButtonClick |
Enter | Completes the user edit and evaluates the entered formula. | NavigatorButtonType.EndEdit | SpreadsheetFormulaBarControl.OkButtonClick |
Insert Function | Inserts a function from the Function Library. | NavigatorButtonType.Custom | SpreadsheetFormulaBarControl.InsertFunctionButtonClick |