Skip to main content

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

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

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