C# 클래스 Flood.GUI.Align

Utility class for manipulating control's position according to its parent. Rarely needed, use control.Dock.
파일 보기 프로젝트 열기: FloodProject/flood

공개 메소드들

메소드 설명
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