TreeViewCancelEventArgs(TreeNode, Boolean, TreeViewAction) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
使用指定的树节点初始化类的新实例 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)
参数
- cancel
- Boolean
true 取消事件;否则,为 false.
- action
- TreeViewAction
指示 TreeViewAction 引发事件的操作类型的值之一。