OriginalDataRestoredEventArgs Interface

 

Provides data for an OriginalDataRestored event.

Namespace:   Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)

[GuidAttribute("bf384426-1805-4e64-9d3e-79ec84d8bbbd")]
public interface class OriginalDataRestoredEventArgs

NameDescription
System_CAPS_pubpropertyChangeReason

Gets a value indicating the reason that the original data was restored.

System_CAPS_pubpropertyChangeType

Gets a value indicating the kind of restoration performed by a ListObject control.

An OriginalDataRestored event is raised by a ListObject control when it restores data to its original state. The ChangeType argument provides information about the kind of restoration the ListObject control performed, and the ChangeReason provides information about the reason that this restoration was performed.

The following code example creates a DataTable and a ListObject, and binds the ListObject to the DataTable. It then creates an OriginalDataRestored event handler. To test the event, right-click a column letter above the ListObject on sheet 1 and then click Delete in the shortcut menu. The event handler replaces the column and column header data and displays a message indicating what kind of data was restored and the reason that the original data was restored.

This example is for a document-level customization.

No code example is currently available or this language may not be supported.
Return to top
Show: