C# Class ComponentFactory.Krypton.Toolkit.KryptonTreeView

Inheritance: VisualControlBase, IContainedInputControl
Mostra file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
CreateControlsInstance System.Windows.Forms.Control.ControlCollection
GetDoubleState IPaletteDouble
NodeIndent int
OnTreeViewAfterCheck void
OnTreeViewAfterCollapse void
OnTreeViewAfterExpand void
OnTreeViewAfterLabelEdit void
OnTreeViewAfterSelect void
OnTreeViewBeforeCheck void
OnTreeViewBeforeCollapse void
OnTreeViewBeforeExpand void
OnTreeViewBeforeLabelEdit void
OnTreeViewBeforeSelect void
OnTreeViewDrawNode void
OnTreeViewGotFocus void
OnTreeViewItemDrag void
OnTreeViewKeyDown void
OnTreeViewKeyPress void
OnTreeViewKeyUp void
OnTreeViewLostFocus void
OnTreeViewMouseChange void
OnTreeViewNodeMouseClick void
OnTreeViewNodeMouseDoubleClick void
OnTreeViewNodeMouseHover void
OnTreeViewPreviewKeyDown void
OnTreeViewValidated void
OnTreeViewValidating void
ResetBackStyle void
ResetBorderStyle void
ResetItemHeight void
ResetItemStyle void
ShouldSerializeBackStyle bool
ShouldSerializeBorderStyle bool
ShouldSerializeCheckBoxImages bool
ShouldSerializeItemHeight bool
ShouldSerializeItemStyle bool
ShouldSerializeOverrideFocus bool
ShouldSerializePlusMinusImages bool
ShouldSerializeStateActive bool
ShouldSerializeStateCheckedNormal bool
ShouldSerializeStateCheckedPressed bool
ShouldSerializeStateCheckedTracking bool
ShouldSerializeStateCommon bool
ShouldSerializeStateDisabled bool
ShouldSerializeStateNormal bool
ShouldSerializeStatePressed bool
ShouldSerializeStateTracking bool
UpdateContentFromNode void
UpdateItemHeight void
UpdateStateAndPalettes void

Public Methods

Method Description
BeginUpdate ( ) : void

Maintains performance while items are added to the TreeView one at a time by preventing the control from drawing until the EndUpdate method is called.

CollapseAll ( ) : void

Collapses all the tree nodes.

EndUpdate ( ) : void

Resumes painting the TreeView control after painting is suspended by the BeginUpdate method.

ExpandAll ( ) : void

Expands all the tree nodes.

Focus ( ) : bool

Sets input focus to the control.

GetNodeAt ( Point pt ) : TreeNode

Retrieves the tree node that is at the specified point.

GetNodeAt ( int x, int y ) : TreeNode

Retrieves the tree node at the point with the specified coordinates.

GetNodeCount ( bool includeSubTrees ) : int

Retrieves the number of tree nodes, optionally including those in all subtrees, assigned to the tree view control.

HitTest ( Point pt ) : System.Windows.Forms.TreeViewHitTestInfo

Provides node information, given a point.

HitTest ( int x, int y ) : System.Windows.Forms.TreeViewHitTestInfo

Provides node information, given x- and y-coordinates.

KryptonTreeView ( ) : System

Initialize a new instance of the KryptonTreeView class.

Select ( ) : void

Activates the control.

SetFixedState ( bool active ) : void

Sets the fixed state of the control.

Sort ( ) : void

Sorts the items in KryptonTreeView control.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases all resources used by the Control.

ForceControlLayout ( ) : void

Force the layout logic to size and position the controls.

OnAfterCheck ( TreeViewEventArgs e ) : void

Raises the AfterCheck event.

OnAfterCollapse ( TreeViewEventArgs e ) : void

Raises the AfterCollapse event.

OnAfterExpand ( TreeViewEventArgs e ) : void

Raises the AfterExpand event.

OnAfterLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void

Raises the AfterLabelEdit event.

OnAfterSelect ( TreeViewEventArgs e ) : void

Raises the AfterSelect event.

OnBackColorChanged ( EventArgs e ) : void

Raises the BackColorChanged event.

OnBackgroundImageChanged ( EventArgs e ) : void

Raises the BackgroundImageChanged event.

OnBackgroundImageLayoutChanged ( EventArgs e ) : void

Raises the BackgroundImageLayoutChanged event.

OnBeforeCheck ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Raises the BeforeCheck event.

OnBeforeCollapse ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Raises the BeforeCollapse event.

OnBeforeExpand ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Raises the BeforeExpand event.

OnBeforeLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void

Raises the BeforeLabelEdit event.

OnBeforeSelect ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void

Raises the BeforeSelect event.

OnCausesValidationChanged ( EventArgs e ) : void

Raises the CausesValidationChanged event.

OnCreateControl ( ) : void

Raises the CreateControl event.

OnEnabledChanged ( EventArgs e ) : void

Raises the EnabledChanged event.

OnForeColorChanged ( EventArgs e ) : void

Raises the ForeColorChanged event.

OnHandleCreated ( EventArgs e ) : void

Raises the HandleCreated event.

OnItemDrag ( ItemDragEventArgs e ) : void

Raises the ItemDrag event.

OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void

Raises the Layout event.

OnMouseEnter ( EventArgs e ) : void

Raises the MouseEnter event.

OnMouseLeave ( EventArgs e ) : void

Raises the MouseLeave event.

OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

Processes a notification from palette storage of a paint and optional layout required.

OnNodeMouseClick ( TreeNodeMouseClickEventArgs e ) : void

Raises the NodeMouseClick event.

OnNodeMouseDoubleClick ( TreeNodeMouseClickEventArgs e ) : void

Raises the NodeMouseDoubleClick event.

OnNodeMouseHover ( System.Windows.Forms.TreeNodeMouseHoverEventArgs e ) : void

Raises the NodeMouseHover event.

OnPaddingChanged ( EventArgs e ) : void

Raises the PaddingChanged event.

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event.

OnPaletteChanged ( EventArgs e ) : void

Raises the PaletteChanged event.

OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void

Processes a notification from palette of a paint and optional layout required.

OnRightToLeftLayoutChanged ( EventArgs e ) : void

Raises the RightToLeftLayoutChanged event.

OnTabStopChanged ( EventArgs e ) : void

Raises the TabStop event.

OnTextChanged ( EventArgs e ) : void

Raises the TextChanged event.

OnTrackMouseEnter ( EventArgs e ) : void

Raises the TrackMouseEnter event.

OnTrackMouseLeave ( EventArgs e ) : void

Raises the TrackMouseLeave event.

Private Methods

Method Description
CreateControlsInstance ( ) : Control.ControlCollection
GetDoubleState ( ) : IPaletteDouble
NodeIndent ( TreeNode node ) : int
OnTreeViewAfterCheck ( object sender, TreeViewEventArgs e ) : void
OnTreeViewAfterCollapse ( object sender, TreeViewEventArgs e ) : void
OnTreeViewAfterExpand ( object sender, TreeViewEventArgs e ) : void
OnTreeViewAfterLabelEdit ( object sender, System.Windows.Forms.NodeLabelEditEventArgs e ) : void
OnTreeViewAfterSelect ( object sender, TreeViewEventArgs e ) : void
OnTreeViewBeforeCheck ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
OnTreeViewBeforeCollapse ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
OnTreeViewBeforeExpand ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
OnTreeViewBeforeLabelEdit ( object sender, System.Windows.Forms.NodeLabelEditEventArgs e ) : void
OnTreeViewBeforeSelect ( object sender, System.Windows.Forms.TreeViewCancelEventArgs e ) : void
OnTreeViewDrawNode ( object sender, DrawTreeNodeEventArgs e ) : void
OnTreeViewGotFocus ( object sender, EventArgs e ) : void
OnTreeViewItemDrag ( object sender, ItemDragEventArgs e ) : void
OnTreeViewKeyDown ( object sender, KeyEventArgs e ) : void
OnTreeViewKeyPress ( object sender, KeyPressEventArgs e ) : void
OnTreeViewKeyUp ( object sender, KeyEventArgs e ) : void
OnTreeViewLostFocus ( object sender, EventArgs e ) : void
OnTreeViewMouseChange ( object sender, EventArgs e ) : void
OnTreeViewNodeMouseClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
OnTreeViewNodeMouseDoubleClick ( object sender, TreeNodeMouseClickEventArgs e ) : void
OnTreeViewNodeMouseHover ( object sender, System.Windows.Forms.TreeNodeMouseHoverEventArgs e ) : void
OnTreeViewPreviewKeyDown ( object sender, PreviewKeyDownEventArgs e ) : void
OnTreeViewValidated ( object sender, EventArgs e ) : void
OnTreeViewValidating ( object sender, CancelEventArgs e ) : void
ResetBackStyle ( ) : void
ResetBorderStyle ( ) : void
ResetItemHeight ( ) : void
ResetItemStyle ( ) : void
ShouldSerializeBackStyle ( ) : bool
ShouldSerializeBorderStyle ( ) : bool
ShouldSerializeCheckBoxImages ( ) : bool
ShouldSerializeItemHeight ( ) : bool
ShouldSerializeItemStyle ( ) : bool
ShouldSerializeOverrideFocus ( ) : bool
ShouldSerializePlusMinusImages ( ) : bool
ShouldSerializeStateActive ( ) : bool
ShouldSerializeStateCheckedNormal ( ) : bool
ShouldSerializeStateCheckedPressed ( ) : bool
ShouldSerializeStateCheckedTracking ( ) : bool
ShouldSerializeStateCommon ( ) : bool
ShouldSerializeStateDisabled ( ) : bool
ShouldSerializeStateNormal ( ) : bool
ShouldSerializeStatePressed ( ) : bool
ShouldSerializeStateTracking ( ) : bool
UpdateContentFromNode ( TreeNode node ) : void
UpdateItemHeight ( ) : void
UpdateStateAndPalettes ( ) : void

Method Details

BeginUpdate() public method

Maintains performance while items are added to the TreeView one at a time by preventing the control from drawing until the EndUpdate method is called.
public BeginUpdate ( ) : void
return void

CollapseAll() public method

Collapses all the tree nodes.
public CollapseAll ( ) : void
return void

Dispose() protected method

Releases all resources used by the Control.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
return void

EndUpdate() public method

Resumes painting the TreeView control after painting is suspended by the BeginUpdate method.
public EndUpdate ( ) : void
return void

ExpandAll() public method

Expands all the tree nodes.
public ExpandAll ( ) : void
return void

Focus() public method

Sets input focus to the control.
public Focus ( ) : bool
return bool

ForceControlLayout() protected method

Force the layout logic to size and position the controls.
protected ForceControlLayout ( ) : void
return void

GetNodeAt() public method

Retrieves the tree node that is at the specified point.
public GetNodeAt ( Point pt ) : TreeNode
pt Point The Point to evaluate and retrieve the node from.
return System.Windows.Forms.TreeNode

GetNodeAt() public method

Retrieves the tree node at the point with the specified coordinates.
public GetNodeAt ( int x, int y ) : TreeNode
x int The X position to evaluate and retrieve the node from.
y int The Y position to evaluate and retrieve the node from.
return System.Windows.Forms.TreeNode

GetNodeCount() public method

Retrieves the number of tree nodes, optionally including those in all subtrees, assigned to the tree view control.
public GetNodeCount ( bool includeSubTrees ) : int
includeSubTrees bool true to count the TreeNode items that the subtrees contain; otherwise, false.
return int

HitTest() public method

Provides node information, given a point.
public HitTest ( Point pt ) : System.Windows.Forms.TreeViewHitTestInfo
pt Point The Point at which to retrieve node information.
return System.Windows.Forms.TreeViewHitTestInfo

HitTest() public method

Provides node information, given x- and y-coordinates.
public HitTest ( int x, int y ) : System.Windows.Forms.TreeViewHitTestInfo
x int The x-coordinate at which to retrieve node information.
y int The y-coordinate at which to retrieve node information.
return System.Windows.Forms.TreeViewHitTestInfo

KryptonTreeView() public method

Initialize a new instance of the KryptonTreeView class.
public KryptonTreeView ( ) : System
return System

OnAfterCheck() protected method

Raises the AfterCheck event.
protected OnAfterCheck ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs An TreeViewEventArgs that contains the event data.
return void

OnAfterCollapse() protected method

Raises the AfterCollapse event.
protected OnAfterCollapse ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs An TreeViewEventArgs that contains the event data.
return void

OnAfterExpand() protected method

Raises the AfterExpand event.
protected OnAfterExpand ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs An TreeViewEventArgs that contains the event data.
return void

OnAfterLabelEdit() protected method

Raises the AfterLabelEdit event.
protected OnAfterLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void
e System.Windows.Forms.NodeLabelEditEventArgs An NodeLabelEditEventArgs that contains the event data.
return void

OnAfterSelect() protected method

Raises the AfterSelect event.
protected OnAfterSelect ( TreeViewEventArgs e ) : void
e System.Windows.Forms.TreeViewEventArgs An TreeViewEventArgs that contains the event data.
return void

OnBackColorChanged() protected method

Raises the BackColorChanged event.
protected OnBackColorChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnBackgroundImageChanged() protected method

Raises the BackgroundImageChanged event.
protected OnBackgroundImageChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnBackgroundImageLayoutChanged() protected method

Raises the BackgroundImageLayoutChanged event.
protected OnBackgroundImageLayoutChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnBeforeCheck() protected method

Raises the BeforeCheck event.
protected OnBeforeCheck ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs An TreeViewCancelEventArgs that contains the event data.
return void

OnBeforeCollapse() protected method

Raises the BeforeCollapse event.
protected OnBeforeCollapse ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs An TreeViewCancelEventArgs that contains the event data.
return void

OnBeforeExpand() protected method

Raises the BeforeExpand event.
protected OnBeforeExpand ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs An TreeViewCancelEventArgs that contains the event data.
return void

OnBeforeLabelEdit() protected method

Raises the BeforeLabelEdit event.
protected OnBeforeLabelEdit ( System.Windows.Forms.NodeLabelEditEventArgs e ) : void
e System.Windows.Forms.NodeLabelEditEventArgs An NodeLabelEditEventArgs that contains the event data.
return void

OnBeforeSelect() protected method

Raises the BeforeSelect event.
protected OnBeforeSelect ( System.Windows.Forms.TreeViewCancelEventArgs e ) : void
e System.Windows.Forms.TreeViewCancelEventArgs An TreeViewCancelEventArgs that contains the event data.
return void

OnCausesValidationChanged() protected method

Raises the CausesValidationChanged event.
protected OnCausesValidationChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnCreateControl() protected method

Raises the CreateControl event.
protected OnCreateControl ( ) : void
return void

OnEnabledChanged() protected method

Raises the EnabledChanged event.
protected OnEnabledChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnForeColorChanged() protected method

Raises the ForeColorChanged event.
protected OnForeColorChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnHandleCreated() protected method

Raises the HandleCreated event.
protected OnHandleCreated ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnItemDrag() protected method

Raises the ItemDrag event.
protected OnItemDrag ( ItemDragEventArgs e ) : void
e System.Windows.Forms.ItemDragEventArgs An ItemDragEventArgs that contains the event data.
return void

OnLayout() protected method

Raises the Layout event.
protected OnLayout ( System.Windows.Forms.LayoutEventArgs levent ) : void
levent System.Windows.Forms.LayoutEventArgs An EventArgs that contains the event data.
return void

OnMouseEnter() protected method

Raises the MouseEnter event.
protected OnMouseEnter ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnMouseLeave() protected method

Raises the MouseLeave event.
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnNeedPaint() protected method

Processes a notification from palette storage of a paint and optional layout required.
protected OnNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
sender object Source of notification.
e NeedLayoutEventArgs An NeedLayoutEventArgs containing event data.
return void

OnNodeMouseClick() protected method

Raises the NodeMouseClick event.
protected OnNodeMouseClick ( TreeNodeMouseClickEventArgs e ) : void
e System.Windows.Forms.TreeNodeMouseClickEventArgs An TreeNodeMouseClickEventArgs that contains the event data.
return void

OnNodeMouseDoubleClick() protected method

Raises the NodeMouseDoubleClick event.
protected OnNodeMouseDoubleClick ( TreeNodeMouseClickEventArgs e ) : void
e System.Windows.Forms.TreeNodeMouseClickEventArgs An TreeNodeMouseClickEventArgs that contains the event data.
return void

OnNodeMouseHover() protected method

Raises the NodeMouseHover event.
protected OnNodeMouseHover ( System.Windows.Forms.TreeNodeMouseHoverEventArgs e ) : void
e System.Windows.Forms.TreeNodeMouseHoverEventArgs An TreeNodeMouseHoverEventArgs that contains the event data.
return void

OnPaddingChanged() protected method

Raises the PaddingChanged event.
protected OnPaddingChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnPaint() protected method

Raises the Paint event.
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs An PaintEventArgs that contains the event data.
return void

OnPaletteChanged() protected method

Raises the PaletteChanged event.
protected OnPaletteChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnPaletteNeedPaint() protected method

Processes a notification from palette of a paint and optional layout required.
protected OnPaletteNeedPaint ( object sender, NeedLayoutEventArgs e ) : void
sender object Source of notification.
e NeedLayoutEventArgs An NeedLayoutEventArgs containing event data.
return void

OnRightToLeftLayoutChanged() protected method

Raises the RightToLeftLayoutChanged event.
protected OnRightToLeftLayoutChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnTabStopChanged() protected method

Raises the TabStop event.
protected OnTabStopChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnTextChanged() protected method

Raises the TextChanged event.
protected OnTextChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data.
return void

OnTrackMouseEnter() protected method

Raises the TrackMouseEnter event.
protected OnTrackMouseEnter ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

OnTrackMouseLeave() protected method

Raises the TrackMouseLeave event.
protected OnTrackMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs containing the event data.
return void

Select() public method

Activates the control.
public Select ( ) : void
return void

SetFixedState() public method

Sets the fixed state of the control.
public SetFixedState ( bool active ) : void
active bool Should the control be fixed as active.
return void

Sort() public method

Sorts the items in KryptonTreeView control.
public Sort ( ) : void
return void