C# Class Ushahidi.Common.Controls.ScrollListBox

Afficher le fichier Open project: ushahidi/Ushahidi_WinMobile

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode 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 méthode

Add new item
public Add ( Control control ) : void
control Control item to add
Résultat void

Add() public méthode

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

AdjustHeight() public méthode

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

Clear() public méthode

Clear all items
public Clear ( ) : void
Résultat void

Dispose() public méthode

Dispose of resources
public Dispose ( ) : void
Résultat void

Dispose() protected méthode

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

Focus() public méthode

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

GetAbsoluteY() public static méthode

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
Résultat int

Invalidate() public méthode

Invalidate
public Invalidate ( ) : void
Résultat void

Refresh() public méthode

Refresh
public Refresh ( ) : void
Résultat void

Remove() public méthode

Remove an item
public Remove ( Control control ) : void
control Control list box item to remove
Résultat void

ScrollListBox() public méthode

Scroll List Box
public ScrollListBox ( ) : System
Résultat System