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

DocumentAction(Predicate<Document>, Action<Document>) Constructor

In This Article

Initializes a new instance of the DocumentAction class with the specified functionality and availability check.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

public DocumentAction(
    Predicate<Document> canExecute,
    Action<Document> execute
)

#Parameters

Name Type Description
canExecute Predicate<Document>

A Predicate that specifies the set of criteria and checks whether the Document meets these criteria. The Action is not visible if the canExecute returns false.

execute Action<Document>

An Action delegate that implements the DocumentAction‘s functionality.

See Also