バージョン

OnPasteError メソッド

ノードをクリップボードから貼り付けようとしたときにエラーが発生した場合に呼び出されます。
シンタックス
'宣言
 
Protected Overridable Sub OnPasteError( _
   ByVal e As PasteErrorEventArgs _
) 
protected virtual void OnPasteError( 
   PasteErrorEventArgs e
)

パラメータ

e
イベントのデータを含む System.EventArgs
使用例
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() );
}
参照