Version

VisualizationEditorClosing Event

Event triggered when the close button in the visualization editor is being pressed, the event can be cancelled if closing the visualization is not allowed. VisualizationEditorClosingEventArgs.ResetVisualization can be used to reset the visualization to the original state, when the editor was displayed.
Syntax
'Declaration
 
Public Event VisualizationEditorClosing As EventHandler(Of VisualizationEditorClosingEventArgs)
public event EventHandler<VisualizationEditorClosingEventArgs> VisualizationEditorClosing
Event Data

The event handler receives an argument of type VisualizationEditorClosingEventArgs containing data related to this event. The following VisualizationEditorClosingEventArgs properties provide information specific to this event.

PropertyDescription
Cancel (Inherited from System.ComponentModel.CancelEventArgs) 
IsNewVisualization This property is true if it is new visualization that has been created
ResetVisualization Set this property to true in order to reset the visualization at its initial state reseting any changes.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also