Skip to main content
A newer version of this page is available. .

IDocumentContent.OnClose(CancelEventArgs) Method

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

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v18.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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the OnClose(CancelEventArgs) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also