The OnFlatViewChange event can be implemented by a script add-in to receive notification whenever the user changes the display mode in a tab.

Method Name: OnFlatViewChange

Argument Type:

FlatViewChangeData 

Return Type:

none

Description:

The FlatViewChangeData.tab property identifies the tab, and the mode property identifies the new Flat View mode ("off", "grouped", "mixed", "mixednofolders").