C# Класс AnimatGuiCtrls.Controls.ComboTreeBox

Наследование: DropDownControlBase
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
GetNextDisplayedNode ComboTreeNode
GetNodeImage Image
GetNodesRecursive IEnumerator
GetPrevDisplayedNode ComboTreeNode
IsNodeVisible bool
OwnsNode bool
SetDroppedDown void
SetSelectedNode void
dropDown_Closed void
dropDown_Opened void
nodes_CollectionChanged void

Открытые методы

Метод Описание
BeginUpdate ( ) : void

Prevents the dropdown portion of the control from being updated until the EndUpdate method is called.

CollapseAll ( ) : void

Collapses all nodes in the tree for when the dropdown portion of the control is reopened.

ComboTreeBox ( ) : System

Initalises a new instance of ComboTreeBox.

EndUpdate ( ) : void

Updates the dropdown portion of the control after being suspended by the BeginUpdate method.

ExpandAll ( ) : void

Expands all nodes in the tree for when the dropdown portion of the control is reopened.

Sort ( ) : void

Sorts the contents of the tree using the default comparer.

Sort ( IComparer comparer ) : void

Sorts the contents of the tree using the specified comparer.

Защищенные методы

Метод Описание
Dispose ( bool disposing ) : void

Disposes of the control and its dropdown.

OnFontChanged ( EventArgs e ) : void

Updates the dropdown's font when the control's font changes.

OnKeyDown ( KeyEventArgs e ) : void

Handles keyboard shortcuts.

OnLostFocus ( EventArgs e ) : void

Closes the dropdown portion of the control when it loses focus.

OnMouseClick ( MouseEventArgs e ) : void

Toggles the visibility of the dropdown portion of the control.

OnMouseWheel ( MouseEventArgs e ) : void

Scrolls between adjacent nodes, or scrolls the drop-down portion of the control in response to the mouse wheel.

OnPaintContent ( DropDownPaintEventArgs e ) : void

Paints the selected node in the control.

OnSelectedNodeChanged ( EventArgs e ) : void

Raises the SelectedNodeChanged event.

Приватные методы

Метод Описание
GetNextDisplayedNode ( ) : ComboTreeNode

Returns the next displayable node, relative to the selected node.

GetNodeImage ( ComboTreeNode node ) : Image

Returns the image referenced by the specified node in the ImageList component associated with this control.

GetNodesRecursive ( ComboTreeNodeCollection collection, bool reverse ) : IEnumerator

Helper method for the AllNodes property.

GetPrevDisplayedNode ( ) : ComboTreeNode

Returns the previous displayable node, relative to the selected node.

IsNodeVisible ( ComboTreeNode node ) : bool

Determines whether the specified node should be displayed.

OwnsNode ( ComboTreeNode node ) : bool

Determines whether the specified node belongs to this ComboTreeBox, and hence is a valid selection. For the purposes of this method, a null value is always a valid selection.

SetDroppedDown ( bool droppedDown, bool raiseEvents ) : void

Sets the value of the DroppedDown property, optionally without raising any events.

SetSelectedNode ( ComboTreeNode node ) : void

Sets the value of the SelectedNode property and raises the SelectedNodeChanged event.

dropDown_Closed ( object sender, System.Windows.Forms.ToolStripDropDownClosedEventArgs e ) : void
dropDown_Opened ( object sender, EventArgs e ) : void
nodes_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Описание методов

BeginUpdate() публичный Метод

Prevents the dropdown portion of the control from being updated until the EndUpdate method is called.
public BeginUpdate ( ) : void
Результат void

CollapseAll() публичный Метод

Collapses all nodes in the tree for when the dropdown portion of the control is reopened.
public CollapseAll ( ) : void
Результат void

ComboTreeBox() публичный Метод

Initalises a new instance of ComboTreeBox.
public ComboTreeBox ( ) : System
Результат System

Dispose() защищенный Метод

Disposes of the control and its dropdown.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndUpdate() публичный Метод

Updates the dropdown portion of the control after being suspended by the BeginUpdate method.
public EndUpdate ( ) : void
Результат void

ExpandAll() публичный Метод

Expands all nodes in the tree for when the dropdown portion of the control is reopened.
public ExpandAll ( ) : void
Результат void

OnFontChanged() защищенный Метод

Updates the dropdown's font when the control's font changes.
protected OnFontChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

OnKeyDown() защищенный Метод

Handles keyboard shortcuts.
protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnLostFocus() защищенный Метод

Closes the dropdown portion of the control when it loses focus.
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseClick() защищенный Метод

Toggles the visibility of the dropdown portion of the control.
protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseWheel() защищенный Метод

Scrolls between adjacent nodes, or scrolls the drop-down portion of the control in response to the mouse wheel.
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnPaintContent() защищенный Метод

Paints the selected node in the control.
protected OnPaintContent ( DropDownPaintEventArgs e ) : void
e DropDownPaintEventArgs
Результат void

OnSelectedNodeChanged() защищенный Метод

Raises the SelectedNodeChanged event.
protected OnSelectedNodeChanged ( EventArgs e ) : void
e System.EventArgs
Результат void

Sort() публичный Метод

Sorts the contents of the tree using the default comparer.
public Sort ( ) : void
Результат void

Sort() публичный Метод

Sorts the contents of the tree using the specified comparer.
public Sort ( IComparer comparer ) : void
comparer IComparer
Результат void