共用方式為


TreeViewCancelEventArgs(TreeNode, Boolean, TreeViewAction) 建構函式

定義

使用指定的樹狀節點、指定是否取消事件數值和引發事件的樹狀檢視動作型別,初始化 TreeViewCancelEventArgs 類別的執行個體。

public:
 TreeViewCancelEventArgs(System::Windows::Forms::TreeNode ^ node, bool cancel, System::Windows::Forms::TreeViewAction action);
public TreeViewCancelEventArgs (System.Windows.Forms.TreeNode node, bool cancel, System.Windows.Forms.TreeViewAction action);
public TreeViewCancelEventArgs (System.Windows.Forms.TreeNode? node, bool cancel, System.Windows.Forms.TreeViewAction action);
new System.Windows.Forms.TreeViewCancelEventArgs : System.Windows.Forms.TreeNode * bool * System.Windows.Forms.TreeViewAction -> System.Windows.Forms.TreeViewCancelEventArgs
Public Sub New (node As TreeNode, cancel As Boolean, action As TreeViewAction)

參數

node
TreeNode

事件回應的 TreeNode

cancel
Boolean

true 表示要取消事件,否則為 false

action
TreeViewAction

其中一個 TreeViewAction 值,表示引發事件的動作型別。

適用於