Sign in Join
FPDoc Onlineexperiment

TPanel.VerticalAlignment property

Member of TPanelpublishedIn unit ExtCtrls

Vertical alignment for the caption text displayed on the panel.

Declaration

pascal
property VerticalAlignment:;

Description

VerticalAlignment is a TVerticalAlignment property which controls the vertical alignment for the Caption displayed on the panel. The default value for the property is taVerticalCenter, and causes the caption text to be centered vertically on the panel. Use taAlignTop to align caption text to the top of the panel. Use taAlignBottom to align caption text to the bottom of the panel.

Changing the value for the property causes the Invalidate method to be called, and the panel is redrawn.

VerticalAlignment is used in the Paint method to determine the text layout/style applied when the value in Caption is drawn on the Canvas for the control.

Use Alignment to control the horizontal alignment for the Caption text displayed for the panel.

Use Align to position the panel along one of the edges on the parent control or form.

This description is the one of ExtCtrls.TCustomPanel.VerticalAlignment.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.