'Declaration Public Event PasteError As PasteErrorEventHandler
public event PasteErrorEventHandler PasteError
The event handler receives an argument of type PasteErrorEventArgs containing data related to this event. The following PasteErrorEventArgs properties provide information specific to this event.
Property | Description |
---|---|
DisplayErrorMessage | Determines if a MessageBox will be displayed to the user describing the error. |
Exception | The exception that was thrown. (read-only) |
Nodes (Inherited from Infragistics.Win.UltraWinTree.NodesEventArgs) | The collection of nodes that were operated on. (read-only) |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinTree Private Sub ultraTree1_PasteError(ByVal sender As Object, ByVal e As Infragistics.Win.UltraWinTree.PasteErrorEventArgs) Handles ultraTree1.PasteError ' Paste exceptions can occur if: ' 1. the application doesn't have security rights to the clipboard ' 2. one or more of the nodes being pasted have keys that are ' already used by other nodes in the tree . Debug.WriteLine(e.Exception.ToString()) End Sub
using System.Diagnostics; using Infragistics.Win; using Infragistics.Win.UltraWinTree; private void ultraTree1_PasteError(object sender, Infragistics.Win.UltraWinTree.PasteErrorEventArgs e) { // Paste exceptions can occur if: // 1. the application doesn't have security rights to the clipboard // 2. one or more of the nodes being pasted have keys that are // already used by other nodes in the tree . Debug.WriteLine( e.Exception.ToString() ); }
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