Align Property

Applies to TestComplete 14.40, last modified on April 22, 2021

Specifies how the component is aligned within its parent.

Declaration

componentObj.Align
Read-Write Property String
componentObj     One of the user forms components listed in the Applies To section  

Applies To

The property applies to the following components:

TBevel, TcxButton, TcxCheckBox, TcxGroupBox, TcxLabel, TcxListBox, TcxMemo, TcxProgressBar, TcxRadioGroup, TImage, TPanel, TShape

Description

The Align property specifies how the component is aligned within its parent. Alignment means that when the parent object is resized, the aligned component is also resized to fill the specified parent’s side.

Property Value

One of the following string constants:

Constant Description
alNone No alignment. The component remains at the same location on its parent where it was placed. This is the default value.
alTop The component is aligned to the top of its parent. The component’s width is changed so that it fills the parent’ width.
alBottom The component is aligned to the bottom of its parent. The component’s width is changed so that it fills the parent’ width.
alLeft The component is aligned to the left of its parent. The component’s height is changed so that it fills the parent’ height.
alRight The component is aligned to the right of its parent. The component’s height is changed so that it fills the parent’ height.
alClient The component fills all the client area of its parent’s. If the part of client area is occupied by another component, the component is resized to fill the remaining client area.
alCustom No alignment. The component remains at the same location on its parent where it was placed. This is the same as “alNone”.

See Also

Anchors Property

Highlight search results