Version

PasteErrorEventHandler Delegate

Delegate for the UltraTree.PasteError event.
Syntax
'Declaration
 
Public Delegate Sub PasteErrorEventHandler( _
   ByVal sender As Object, _
   ByVal e As PasteErrorEventArgs _
) 
public delegate void PasteErrorEventHandler( 
   object sender,
   PasteErrorEventArgs e
)

Parameters

sender
e
Example
The following sample code illustrates some of the information available in the PasteError event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

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() );
}
Requirements

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

See Also