DocumentCheckAction(Func<Boolean>, Action<Document>, Action<Document>) Constructor

Initializes a new instance of the DocumentCheckAction class with different actions performed when checking and unchecking the DocumentCheckAction.

Namespace: DevExpress.XtraBars.Docking2010.Views.WindowsUI

Assembly: DevExpress.XtraBars.v20.1.dll

Declaration

public DocumentCheckAction(
    Func<bool> getState,
    Action<Document> check,
    Action<Document> uncheck
)
Public Sub New(
    getState As Func(Of Boolean),
    check As Action(Of Document),
    uncheck As Action(Of Document)
)

Parameters

Name Type Description
getState Func<Boolean>

A Func delegate that returns the boolean value related to the current DocumentCheckAction's checked state.

check Action<Document>

An Action delegate that encapsulates a method performed when the DocumentCheckAction is checked.

uncheck Action<Document>

An Action delegate that encapsulates a method performed when the DocumentCheckAction is unchecked.

See Also