C# Класс Flood.GUI.Align

Utility class for manipulating control's position according to its parent. Rarely needed, use control.Dock.
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AlignBottom() публичный статический Метод

Moves the control to the bottom of its parent.
public static AlignBottom ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

AlignLeft() публичный статический Метод

Moves the control to the left of its parent.
public static AlignLeft ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

AlignRight() публичный статический Метод

Moves the control to the right of its parent.
public static AlignRight ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

AlignTop() публичный статический Метод

Moves the control to the top of its parent.
public static AlignTop ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

Center() публичный статический Метод

Centers the control inside its parent.
public static Center ( Control control ) : void
control Flood.GUI.Controls.Control Control to center.
Результат void

CenterHorizontally() публичный статический Метод

Centers the control horizontally inside its parent.
public static CenterHorizontally ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

CenterVertically() публичный статический Метод

Centers the control vertically inside its parent.
public static CenterVertically ( Control control ) : void
control Flood.GUI.Controls.Control
Результат void

PlaceDownLeft() публичный статический Метод

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.
Результат void

PlaceRightBottom() публичный статический Метод

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.
Результат void