DocumentList::DeletingDocument Event

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Occurs when a file is deleted in a DocumentList control.

Namespace:  Microsoft.WindowsCE.Forms
Assembly:  Microsoft.WindowsCE.Forms (in Microsoft.WindowsCE.Forms.dll)

public:
 event DocumentListEventHandler^ DeletingDocument {
	void add (DocumentListEventHandler^ value);
	void remove (DocumentListEventHandler^ value);
}

The DocumentList control raises this event when a file is deleted so that you can close the file, if necessary. Use the Path property to get the path to the file.

For more information about handling events, see Consuming Events.

The following code example shows a method that handles the DeletingDocument event. This code example is part of a larger example provided for the DocumentList class.

No code example is currently available or this language may not be supported.

Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 3.5, 2.0
Show: