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

SpreadsheetFormulaBar.ExecuteResourceNavigatorAction(NavigatorButtonType) Method

Executes the command corresponding to one of the SpreadsheetFormulaBar‘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.

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