Skip to Content
.NET Windows Forms in a Nutshell
book

.NET Windows Forms in a Nutshell

by Ian Griffiths, Matthew Adams
March 2003
Intermediate to advanced
896 pages
32h 35m
English
O'Reilly Media, Inc.
Content preview from .NET Windows Forms in a Nutshell

Name

TreeViewCancelEventArgs

Synopsis

The class encapsulates the event data for the various TreeView.BeforeXXX events. You can determine the Action that caused the event and the Node that will be modified. If you wish to abort the action, you can set the Cancel property.


public class TreeViewCancelEventArgs : System.ComponentModel.CancelEventArgs {

// Public Constructors

   public TreeViewCancelEventArgs(TreeNode node, bool cancel, TreeViewAction action);

// Public Instance Properties

   public TreeViewAction Action{get; }

   public TreeNode Node{get; }

}

Hierarchy

System.Object System.EventArgs System.ComponentModel.CancelEventArgs TreeViewCancelEventArgs

Passed To

TreeView.{OnBeforeCheck(), OnBeforeCollapse(), OnBeforeExpand(), OnBeforeSelect()}, TreeViewCancelEventHandler.{BeginInvoke(), Invoke()}

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Windows Forms 2.0 Programming

Windows Forms 2.0 Programming

Chris Sells, Michael Weinhardt
Pro C# 7: With .NET and .NET Core

Pro C# 7: With .NET and .NET Core

Andrew Troelsen, Philip Japikse

Publisher Resources

ISBN: 0596003382Supplemental ContentCatalog PageErrata