Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetFormulaBarControl.ExecuteResourceNavigatorAction(NavigatorButtonType) Method

Executes the command corresponding to one of the SpreadsheetFormularBarControl’s buttons.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v24.2.dll

NuGet Package: DevExpress.Win.Spreadsheet

#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.

FormulaBarElements

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
See Also