C# 클래스 AnimatGuiCtrls.Controls.ComboTreeBox

상속: DropDownControlBase
파일 보기 프로젝트 열기: NeuroRoboticTech/AnimatLabPublicSource 1 사용 예제들

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