C# Class Ushahidi.Common.Controls.ScrollListBox

Mostra file Open project: ushahidi/Ushahidi_WinMobile

Public Methods

Method Description
Add ( Control control ) : void

Add new item

Add ( Control control, bool refresh ) : void

Add new items

AdjustHeight ( ) : void

Adjust height of list box to fit bottom of last item

Clear ( ) : void

Clear all items

Dispose ( ) : void

Dispose of resources

Focus ( ) : bool

Focus on list, if nothing currently selected, then select first item

GetAbsoluteY ( int y, Control source, Control root ) : int

Get the absolute Y position

Invalidate ( ) : void

Invalidate

Refresh ( ) : void

Refresh

Remove ( Control control ) : void

Remove an item

ScrollListBox ( ) : System

Scroll List Box

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Method Description
EnhancedListBox_KeyDown ( object sender, KeyEventArgs e ) : void

Handle KeyDown of list box

GetSelectedIndex ( Control item ) : int

Get the selected index

InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

MaxBottom ( ControlCollection controls ) : int

Get the maximum bottom position of lowest control

OnItemClick ( object sender, EventArgs e ) : void

Upon single click, fire IndexChanged event

OnItemDoubleClick ( object sender, EventArgs e ) : void

Upon DoubleClick, fire ItemSelected event

OnItemSelected ( Control item ) : void

Fire ItemSelected event, if handler is registered

Method Details

Add() public method

Add new item
public Add ( Control control ) : void
control Control item to add
return void

Add() public method

Add new items
public Add ( Control control, bool refresh ) : void
control Control item to add
refresh bool should refresh list?
return void

AdjustHeight() public method

Adjust height of list box to fit bottom of last item
public AdjustHeight ( ) : void
return void

Clear() public method

Clear all items
public Clear ( ) : void
return void

Dispose() public method

Dispose of resources
public Dispose ( ) : void
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

Focus() public method

Focus on list, if nothing currently selected, then select first item
public Focus ( ) : bool
return bool

GetAbsoluteY() public static method

Get the absolute Y position
public static GetAbsoluteY ( int y, Control source, Control root ) : int
y int the mouse Y
source Control source control
root Control root control
return int

Invalidate() public method

Invalidate
public Invalidate ( ) : void
return void

Refresh() public method

Refresh
public Refresh ( ) : void
return void

Remove() public method

Remove an item
public Remove ( Control control ) : void
control Control list box item to remove
return void

ScrollListBox() public method

Scroll List Box
public ScrollListBox ( ) : System
return System