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

IDocumentOwner.Close(IDocumentContent, Boolean) Method

Closes the specified document.

Namespace: DevExpress.Mvvm

Assembly: DevExpress.Mvvm.v20.2.dll

NuGet Packages: DevExpress.Mvvm, DevExpress.Uwp.Controls, DevExpress.WindowsDesktop.Mvvm

Declaration

void Close(
    IDocumentContent documentContent,
    bool force = true
)

Parameters

Name Type Description
documentContent IDocumentContent

An IDocument implementation to be closed.

Optional Parameters

Name Type Default Description
force Boolean True

true, to disable the confirmation logic; otherwise, false.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Close(IDocumentContent, Boolean) 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