C# Class ComponentFactory.Krypton.Toolkit.KryptonTreeView

Inheritance: VisualControlBase, IContainedInputControl
Afficher le fichier Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat void

CollapseAll() public méthode

Collapses all the tree nodes.
public CollapseAll ( ) : void
Résultat void

Dispose() protected méthode

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.
Résultat void

EndUpdate() public méthode

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

ExpandAll() public méthode

Expands all the tree nodes.
public ExpandAll ( ) : void
Résultat void

Focus() public méthode

Sets input focus to the control.
public Focus ( ) : bool
Résultat bool

ForceControlLayout() protected méthode

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

GetNodeAt() public méthode

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.
Résultat System.Windows.Forms.TreeNode

GetNodeAt() public méthode

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.
Résultat System.Windows.Forms.TreeNode

GetNodeCount() public méthode

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.
Résultat int

HitTest() public méthode

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

HitTest() public méthode

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.
Résultat System.Windows.Forms.TreeViewHitTestInfo

KryptonTreeView() public méthode

Initialize a new instance of the KryptonTreeView class.
public KryptonTreeView ( ) : System
Résultat System

OnAfterCheck() protected méthode

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

OnAfterCollapse() protected méthode

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

OnAfterExpand() protected méthode

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

OnAfterLabelEdit() protected méthode

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

OnAfterSelect() protected méthode

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

OnBackColorChanged() protected méthode

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

OnBackgroundImageChanged() protected méthode

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

OnBackgroundImageLayoutChanged() protected méthode

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

OnBeforeCheck() protected méthode

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

OnBeforeCollapse() protected méthode

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

OnBeforeExpand() protected méthode

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

OnBeforeLabelEdit() protected méthode

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

OnBeforeSelect() protected méthode

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

OnCausesValidationChanged() protected méthode

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

OnCreateControl() protected méthode

Raises the CreateControl event.
protected OnCreateControl ( ) : void
Résultat void

OnEnabledChanged() protected méthode

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

OnForeColorChanged() protected méthode

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

OnHandleCreated() protected méthode

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

OnItemDrag() protected méthode

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

OnLayout() protected méthode

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

OnMouseEnter() protected méthode

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

OnMouseLeave() protected méthode

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

OnNeedPaint() protected méthode

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.
Résultat void

OnNodeMouseClick() protected méthode

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

OnNodeMouseDoubleClick() protected méthode

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

OnNodeMouseHover() protected méthode

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

OnPaddingChanged() protected méthode

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

OnPaint() protected méthode

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

OnPaletteChanged() protected méthode

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

OnPaletteNeedPaint() protected méthode

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.
Résultat void

OnRightToLeftLayoutChanged() protected méthode

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

OnTabStopChanged() protected méthode

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

OnTextChanged() protected méthode

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

OnTrackMouseEnter() protected méthode

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

OnTrackMouseLeave() protected méthode

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

Select() public méthode

Activates the control.
public Select ( ) : void
Résultat void

SetFixedState() public méthode

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

Sort() public méthode

Sorts the items in KryptonTreeView control.
public Sort ( ) : void
Résultat void