Skip to main content

SpreadsheetFormulaBar.ExecuteResourceNavigatorAction(NavigatorButtonType) Method

Executes the command corresponding to one of the SpreadsheetFormulaBar‘s buttons.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v24.2.dll

Declaration

public bool ExecuteResourceNavigatorAction(
    NavigatorButtonType type
)

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.

SpreadsheetControl_NewFormulaBarElements

The table below describes buttons located on 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 SpreadsheetFormulaBar.CancelButtonClick
Enter Completes the user edit and evaluates the entered formula. NavigatorButtonType.EndEdit SpreadsheetFormulaBar.OkButtonClick
Insert Function Inserts a function from the Function Library. NavigatorButtonType.Custom SpreadsheetFormulaBar.InsertFunctionButtonClick
See Also