Skip to main content

IDocumentContent.OnClose(CancelEventArgs) Method

Invoked before a document is closed (hidden), and allows you to prevent this action.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v24.2.dll

Declaration

void OnClose(
    CancelEventArgs e
)

Parameters

Name Type Description
e CancelEventArgs

Provides data for the event handler that can be used to prevent specific operations on a document.

Remarks

To prevent a document from being closed, set the CancelEventArgs.Cancel property to true.

See Also