C# Class CommonTools.TreeListView

Inheritance: System.Windows.Forms.Control, ISupportInitialize
Exibir arquivo Open project: Nullstr1ng/MultiRDPClient.NET Class Usage Examples

Private Properties

Property Type Description
CalcHitRow int
CalcRowRecangle System.Drawing.Rectangle
GetDataDesignMode object
HScrollValue int
MaxVisibleRows int
MaxVisibleRows int
MinWidth int
NodeFind void
RowHeaderWidth int
VScrollValue int
VisibleRowToYPoint int
internalUpdateStyles void

Public Methods

Method Description
AddScroolBars ( ) : void
BeginInit ( ) : void
BeginUpdate ( ) : void
CalcColumnHit ( Point mousepoint ) : CommonTools.HitInfo
CalcHitNode ( Point mousepoint ) : Node
EndInit ( ) : void
EndUpdate ( ) : void
EnsureVisible ( Node node ) : void
FindNode ( string text, bool searchFields ) : CommonTools.Node
GetHitNode ( ) : Node
HitTestScrollbar ( Point mousepoint ) : bool
MultiSelectAdd ( Node clickedNode, Keys modifierKeys ) : void
OnHScroll ( object sender, ScrollEventArgs e ) : void
OnNotifyAfterExpand ( Node node, bool isExpanded ) : void
OnNotifyBeforeExpand ( Node node, bool isExpanding ) : void
OnVScroll ( object sender, ScrollEventArgs e ) : void
RecalcLayout ( ) : void
SetHotColumn ( TreeListColumn col, bool ishot ) : void
SetVScrollValue ( int value ) : void
TreeListView ( ) : System
UpdateScrollBars ( ) : void

Protected Methods

Method Description
BeforeShowContextMenu ( ) : void
GetData ( Node node, TreeListColumn column ) : object
GetFormatting ( CommonTools node, CommonTools column ) : CommonTools.TreeList.TextFormatting
GetIndentSize ( Node node ) : int
GetNodeBitmap ( Node node ) : Image
GetPlusMinusRectangle ( Node node, TreeListColumn firstColumn, int visibleRowIndex ) : Rectangle
InvalidateRow ( int absoluteRowIndex ) : void
IsInputKey ( Keys keyData ) : bool
OnAfterSelect ( Node node ) : void
OnEnter ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLeave ( EventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnSizeChanged ( EventArgs e ) : void
PaintCell ( Graphics dc, Rectangle cellRect, Node node, TreeListColumn column ) : void
PaintImage ( Graphics dc, Rectangle imageRect, Node node, Image image ) : void
PaintLines ( Graphics dc, Rectangle cellRect, Node node ) : void
PaintNode ( Graphics dc, Rectangle rowRect, Node node, TreeListColumn visibleColumns, int visibleRowIndex ) : void
raiseAfterSelect ( Node node ) : void
raiseNotifyAfterExpand ( Node node, bool isExpanded ) : void
raiseNotifyBeforeExpand ( Node node, bool isExpanding ) : void

Private Methods

Method Description
CalcHitRow ( Point mousepoint ) : int
CalcRowRecangle ( int visibleRowIndex ) : Rectangle
GetDataDesignMode ( Node node, TreeListColumn column ) : object
HScrollValue ( ) : int
MaxVisibleRows ( ) : int
MaxVisibleRows ( int &remainder ) : int
MinWidth ( ) : int
NodeFind ( string text, CommonTools cNodes, bool searchFields, CommonTools &outNode ) : void
RowHeaderWidth ( ) : int
VScrollValue ( ) : int
VisibleRowToYPoint ( int visibleRowIndex ) : int
internalUpdateStyles ( ) : void

Method Details

AddScroolBars() public method

public AddScroolBars ( ) : void
return void

BeforeShowContextMenu() protected method

protected BeforeShowContextMenu ( ) : void
return void

BeginInit() public method

public BeginInit ( ) : void
return void

BeginUpdate() public method

public BeginUpdate ( ) : void
return void

CalcColumnHit() public method

public CalcColumnHit ( Point mousepoint ) : CommonTools.HitInfo
mousepoint Point
return CommonTools.HitInfo

CalcHitNode() public method

public CalcHitNode ( Point mousepoint ) : Node
mousepoint Point
return Node

EndInit() public method

public EndInit ( ) : void
return void

EndUpdate() public method

public EndUpdate ( ) : void
return void

EnsureVisible() public method

public EnsureVisible ( Node node ) : void
node Node
return void

FindNode() public method

public FindNode ( string text, bool searchFields ) : CommonTools.Node
text string
searchFields bool
return CommonTools.Node

GetData() protected method

protected GetData ( Node node, TreeListColumn column ) : object
node Node
column TreeListColumn
return object

GetFormatting() protected method

protected GetFormatting ( CommonTools node, CommonTools column ) : CommonTools.TreeList.TextFormatting
node CommonTools
column CommonTools
return CommonTools.TreeList.TextFormatting

GetHitNode() public method

public GetHitNode ( ) : Node
return Node

GetIndentSize() protected method

protected GetIndentSize ( Node node ) : int
node Node
return int

GetNodeBitmap() protected method

protected GetNodeBitmap ( Node node ) : Image
node Node
return Image

GetPlusMinusRectangle() protected method

protected GetPlusMinusRectangle ( Node node, TreeListColumn firstColumn, int visibleRowIndex ) : Rectangle
node Node
firstColumn TreeListColumn
visibleRowIndex int
return System.Drawing.Rectangle

HitTestScrollbar() public method

public HitTestScrollbar ( Point mousepoint ) : bool
mousepoint Point
return bool

InvalidateRow() protected method

protected InvalidateRow ( int absoluteRowIndex ) : void
absoluteRowIndex int
return void

IsInputKey() protected method

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
return bool

MultiSelectAdd() public method

public MultiSelectAdd ( Node clickedNode, Keys modifierKeys ) : void
clickedNode Node
modifierKeys Keys
return void

OnAfterSelect() protected method

protected OnAfterSelect ( Node node ) : void
node Node
return void

OnEnter() protected method

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
return void

OnHScroll() public method

public OnHScroll ( object sender, ScrollEventArgs e ) : void
sender object
e System.Windows.Forms.ScrollEventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
return void

OnLeave() protected method

protected OnLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseClick() protected method

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseLeave() protected method

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnNotifyAfterExpand() public method

public OnNotifyAfterExpand ( Node node, bool isExpanded ) : void
node Node
isExpanded bool
return void

OnNotifyBeforeExpand() public method

public OnNotifyBeforeExpand ( Node node, bool isExpanding ) : void
node Node
isExpanding bool
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnSizeChanged() protected method

protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnVScroll() public method

public OnVScroll ( object sender, ScrollEventArgs e ) : void
sender object
e System.Windows.Forms.ScrollEventArgs
return void

PaintCell() protected method

protected PaintCell ( Graphics dc, Rectangle cellRect, Node node, TreeListColumn column ) : void
dc System.Drawing.Graphics
cellRect System.Drawing.Rectangle
node Node
column TreeListColumn
return void

PaintImage() protected method

protected PaintImage ( Graphics dc, Rectangle imageRect, Node node, Image image ) : void
dc System.Drawing.Graphics
imageRect System.Drawing.Rectangle
node Node
image Image
return void

PaintLines() protected method

protected PaintLines ( Graphics dc, Rectangle cellRect, Node node ) : void
dc System.Drawing.Graphics
cellRect System.Drawing.Rectangle
node Node
return void

PaintNode() protected method

protected PaintNode ( Graphics dc, Rectangle rowRect, Node node, TreeListColumn visibleColumns, int visibleRowIndex ) : void
dc System.Drawing.Graphics
rowRect System.Drawing.Rectangle
node Node
visibleColumns TreeListColumn
visibleRowIndex int
return void

RecalcLayout() public method

public RecalcLayout ( ) : void
return void

SetHotColumn() public method

public SetHotColumn ( TreeListColumn col, bool ishot ) : void
col TreeListColumn
ishot bool
return void

SetVScrollValue() public method

public SetVScrollValue ( int value ) : void
value int
return void

TreeListView() public method

public TreeListView ( ) : System
return System

UpdateScrollBars() public method

public UpdateScrollBars ( ) : void
return void

raiseAfterSelect() protected method

protected raiseAfterSelect ( Node node ) : void
node Node
return void

raiseNotifyAfterExpand() protected method

protected raiseNotifyAfterExpand ( Node node, bool isExpanded ) : void
node Node
isExpanded bool
return void

raiseNotifyBeforeExpand() protected method

protected raiseNotifyBeforeExpand ( Node node, bool isExpanding ) : void
node Node
isExpanding bool
return void