IDocumentContent.OnClose(CancelEventArgs) Method

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

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll


void OnClose(
    CancelEventArgs e
Sub OnClose(
    e As CancelEventArgs


Name Type Description
e CancelEventArgs

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


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

See Also