C# Class InstallPad.ControlList

Afficher le fichier Open project: philc/InstallPad Class Usage Examples

Méthodes publiques

Méthode Description
AddAll ( List controls ) : void

Add many controls at once. Improves drawing performance slightly.

AddControl ( Control control ) : void

When a control is added, we need to add it to the TableView, adjust its width, listen to its visibility, and update our appearance.

AddControl ( Control control, int position ) : void
ClearListItems ( ) : void
ControlAtAbsolutePosition ( Point p ) : Control

Find a control at the given screen position, in absolute coordinates.

Highlight ( Control c ) : void
IndexOfListItem ( Control control ) : int
RemoveControl ( Control control ) : void
Unhighlight ( Control c ) : void

Méthodes protégées

Méthode Description
AlternateColorsOfEntries ( ) : void

Alternates colors of entries between gray and transparent.

Dispose ( bool disposing ) : void

Clean up any resources being used.

Private Methods

Méthode Description
ControlList ( ) : System
ControlList_Load ( object sender, EventArgs e ) : void
FormatAndAddControl ( Control control ) : void

Utility method to get a control read and stick it at the end of the table layout

FormatAndAddControl ( Control control, int position ) : void
InitializeComponent ( ) : void

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

OnListItemClicked ( object sender, MouseEventArgs e ) : void
OnlistItemDoubleClicked ( object sender, MouseEventArgs e ) : void
ShiftRowsDown ( int row ) : void

All rows at 'row' will be shifted down one.

ShiftRowsUp ( int row ) : void

All rows at 'row' will be shifted down one.

UpdateTableHeight ( ) : void

Update the heights of the tablet layout and scroll panel controls

control_VisibleChanged ( object sender, EventArgs e ) : void

Method Details

AddAll() public méthode

Add many controls at once. Improves drawing performance slightly.
public AddAll ( List controls ) : void
controls List
Résultat void

AddControl() public méthode

When a control is added, we need to add it to the TableView, adjust its width, listen to its visibility, and update our appearance.
public AddControl ( Control control ) : void
control Control
Résultat void

AddControl() public méthode

public AddControl ( Control control, int position ) : void
control Control
position int
Résultat void

AlternateColorsOfEntries() protected méthode

Alternates colors of entries between gray and transparent.
protected AlternateColorsOfEntries ( ) : void
Résultat void

ClearListItems() public méthode

public ClearListItems ( ) : void
Résultat void

ControlAtAbsolutePosition() public méthode

Find a control at the given screen position, in absolute coordinates.
public ControlAtAbsolutePosition ( Point p ) : Control
p Point
Résultat Control

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

Highlight() public méthode

public Highlight ( Control c ) : void
c Control
Résultat void

IndexOfListItem() public méthode

public IndexOfListItem ( Control control ) : int
control Control
Résultat int

RemoveControl() public méthode

public RemoveControl ( Control control ) : void
control Control
Résultat void

Unhighlight() public méthode

public Unhighlight ( Control c ) : void
c Control
Résultat void