C# Class Flood.GUI.Align

Utility class for manipulating control's position according to its parent. Rarely needed, use control.Dock.
Afficher le fichier Open project: FloodProject/flood

Méthodes publiques

Méthode Description
AlignBottom ( Control control ) : void

Moves the control to the bottom of its parent.

AlignLeft ( Control control ) : void

Moves the control to the left of its parent.

AlignRight ( Control control ) : void

Moves the control to the right of its parent.

AlignTop ( Control control ) : void

Moves the control to the top of its parent.

Center ( Control control ) : void

Centers the control inside its parent.

CenterHorizontally ( Control control ) : void

Centers the control horizontally inside its parent.

CenterVertically ( Control control ) : void

Centers the control vertically inside its parent.

PlaceDownLeft ( Control control, Control anchor, int spacing ) : void

Places the control below other control (left aligned), taking margins into account.

PlaceRightBottom ( Control control, Control anchor, int spacing ) : void

Places the control to the right of other control (bottom aligned), taking margins into account.

Method Details

AlignBottom() public static méthode

Moves the control to the bottom of its parent.
public static AlignBottom ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

AlignLeft() public static méthode

Moves the control to the left of its parent.
public static AlignLeft ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

AlignRight() public static méthode

Moves the control to the right of its parent.
public static AlignRight ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

AlignTop() public static méthode

Moves the control to the top of its parent.
public static AlignTop ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

Center() public static méthode

Centers the control inside its parent.
public static Center ( Control control ) : void
control Flood.GUI.Controls.Control Control to center.
Résultat void

CenterHorizontally() public static méthode

Centers the control horizontally inside its parent.
public static CenterHorizontally ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

CenterVertically() public static méthode

Centers the control vertically inside its parent.
public static CenterVertically ( Control control ) : void
control Flood.GUI.Controls.Control
Résultat void

PlaceDownLeft() public static méthode

Places the control below other control (left aligned), taking margins into account.
public static PlaceDownLeft ( Control control, Control anchor, int spacing ) : void
control Flood.GUI.Controls.Control Control to place.
anchor Flood.GUI.Controls.Control Anchor control.
spacing int Optional spacing.
Résultat void

PlaceRightBottom() public static méthode

Places the control to the right of other control (bottom aligned), taking margins into account.
public static PlaceRightBottom ( Control control, Control anchor, int spacing ) : void
control Flood.GUI.Controls.Control Control to place.
anchor Flood.GUI.Controls.Control Anchor control.
spacing int Optional spacing.
Résultat void