This documentation is archived and is not being maintained.

DocumentListEventArgs Class

Provides data for the DeletingDocument and DocumentActivated events.

Namespace: Microsoft.WindowsCE.Forms
Assembly: Microsoft.WindowsCE.Forms (in microsoft.windowsce.forms.dll)

public class DocumentListEventArgs : EventArgs
public class DocumentListEventArgs extends EventArgs
public class DocumentListEventArgs extends EventArgs
Not applicable.

This event data contains the path to the file that was either deleted or activated, so you can program your application to close or open the file.

The following code example defines a method that handles the DeletingDocument event. It uses the Path property of the DocumentListEventArgs to get the path to the deleted file. This code example is part of a larger example provided for the DocumentList class.

private void OnDelDoc(object obj, DocumentListEventArgs docg)
{
    statusBar1.Text += "Deleted: " + docg.Path;

    // Add code to close any instances of the file.
}

System.Object
   System.EventArgs
    Microsoft.WindowsCE.Forms.DocumentListEventArgs

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows Mobile for Pocket PC

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Compact Framework

Supported in: 2.0
Show: