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

Declaration

void OnClose(
    CancelEventArgs e
)
Sub OnClose(
    e As CancelEventArgs
)

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