HypernovaDesktop Components · docs
Binarymission
WinFormsTree View Combo Box › TreeViewNative

TreeViewNative

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WinForms.Controls.ListControls

An out-of-the-box treeview control that implements the ISupportTreeView interface.

public class TreeViewNative : TreeView, ISupportTreeView

Inherits from / implements: TreeView, ISupportTreeView

Remarks

If your treeview control that you want to host in the drop-down window is a standard TreeView control, then you could use this class in the place the standard treeview control, and add nodes to this instance and set the TreeViewNativeInstance property with the instance of this class.
Please refer to TreeViewNativeInstance property for a sample on this.

Members at a glance

TreeViewNativeConstructs a new instance of TreeViewNative.
OnAfterSelectRaises the AfterSelect event. TreeViewNative overrides it so the control's own handling runs alongside the base behavior.
ToStringReturns a short description of this TreeViewNative, which is what the designer shows for the property.
AfterSelectRaises the required AfterSelect event, as prescribed in the ISupportTreeView interface.

Constructors

TreeViewNative

public TreeViewNative() : base()

Constructs a new instance of TreeViewNative.

Methods

OnAfterSelect

protected override void OnAfterSelect(TreeViewEventArgs e)

Raises the AfterSelect event. TreeViewNative overrides it so the control's own handling runs alongside the base behavior.

e
The data for the event.

ToString

public override string ToString()

Returns a short description of this TreeViewNative, which is what the designer shows for the property.

Events

AfterSelect

public event ListControls.Shared.TreeViewEventHandler AfterSelect

Raises the required AfterSelect event, as prescribed in the ISupportTreeView interface.