BaseView.RemoveDocument Method

Syntax

C#

public void RemoveDocument(
Control control
)

VB

Public Sub RemoveDocument(
ByVal control As Control
)

Parameters

control

Type: Control
A control used to identify the target document.

Remarks

Documents displayed within a View are stored in the Documents collection. The RemoveDocument method removes a document from this collection, and so from the current View. When a document is removed, it is hidden from the View. It is not destroyed. The DocumentRemoved event fires after a document has been removed.