C# Class TpTrayUtility.TpListViewHeader

Inheritance: System.Windows.Forms.Control
Exibir arquivo Open project: TargetProcess/Tp.TrayUtility Class Usage Examples

Public Properties

Property Type Description
headerClickedEvent HeaderClickEventHandler
headerItems List

Public Methods

Method Description
AddHeaderItem ( string text, int width ) : void
GetSizes ( ) : int[]
Set ( string texts, int widths ) : void
TpListViewHeader ( ) : System

Protected Methods

Method Description
DrawHeaderItem ( Graphics g, int offs, HeaderItem item ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
FindItem ( int pos ) : HeaderItem
FindItemSplitter ( int pos ) : HeaderItem
GetItemIndex ( HeaderItem it ) : int
GetItemPosition ( HeaderItem it ) : int
ResetActiveFlag ( ) : void

Method Details

AddHeaderItem() public method

public AddHeaderItem ( string text, int width ) : void
text string
width int
return void

DrawHeaderItem() protected method

protected DrawHeaderItem ( Graphics g, int offs, HeaderItem item ) : void
g System.Drawing.Graphics
offs int
item HeaderItem
return void

GetSizes() public method

public GetSizes ( ) : int[]
return int[]

OnMouseClick() protected method

protected OnMouseClick ( 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

OnPaint() protected method

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

Set() public method

public Set ( string texts, int widths ) : void
texts string
widths int
return void

TpListViewHeader() public method

public TpListViewHeader ( ) : System
return System

Property Details

headerClickedEvent public_oe property

public HeaderClickEventHandler headerClickedEvent
return HeaderClickEventHandler

headerItems public_oe property

public List headerItems
return List