The event handler receives an argument of type BeforeNodesDeletedEventArgs containing data related to this event. The following BeforeNodesDeletedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancel (Inherited from System.ComponentModel.CancelEventArgs) | |
DisplayPromptMsg | Determines whether or not to display the default message or dialog. |
Nodes | An array of the UltraTreeNode objects that will be deleted (read-only). |
Setting the System.ComponentModel.CancelEventArgs.Cancel property to true will prevent the UltraTreeNode from going into label edit mode.
The BeforeNodesDeletedEventArgs.Nodes property of the BeforeNodesDeletedEventArgs contains an array of the UltraTreeNode objects that are about to be deleted.
By default, the UltraTree will automatically display a confirmation dialog before Deleting nodes. To prevent this dialog from appearing, set the BeforeNodesDeletedEventArgs.DisplayPromptMsg property of the BeforeNodesDeletedEventArgs to false.
Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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