[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Horizontal text justification in the control (centered, left- or right-justified).
Source position: stdctrls.pp line 1596
protected property TCustomLabel.Alignment : TAlignment |
Alignment is a TAlignment property which controls the horizontal justification of the text displayed in the control. The default value for the property is taLeftJustify. When a new value is assigned to the Alignment property, the Invalidate method is called to repaint the control.
Alignment (and other properties) are used in the Paint method when the text is rendered to the Canvas for the control. It is also used in UpdateSize when right alignment needs to be considered for an auto-sized or optimal-filled control.
Use the Layout property to control the vertical alignment of the text displayed in the control.
Use OptimalFill to indicate if the font height can be adjusted to fill the client area for the control.
|
Enables or disables auto-sizing the control to its content. |
|
|
Vertical alignment for control text (at the top, bottom, or center). |
|
|
If True, the font size is adjusted for optimal fill of the available space. |
|
|
Performs actions needed to draw the control on its Canvas. |
|
|
Adjusts the size for the control based on settings in AutoSize and OptimalFill. |
|
|
Causes a delayed Repaint of the control by marking its visible area of the control as invalid. |
|
Version 3.2 | Generated 2024-02-25 | Home |