Alignment Property

Applies to TestComplete 12.60, last modified on September 17, 2018

Specifies the alignment of the component’s text.

Declaration

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

Applies To

The property applies to the following components and objects:

TcxGroupBox, TcxRadioGroup, TcxCheckBoxProperties, TcxMemoProperties, TPanel

Description

The Alignment property specifies the alignment of the component’s text. For the TcxGroupBox and TcxRadioGroup components, this property controls the position and alignment of the component’s caption.

Property Value

The property value depends on the object type. Sections below list available property values for different objects.

Property Values Specific for TcxCheckBoxProperties, TcxMemoProperties and TPanel objects

The Alignment property of the TcxCheckBoxProperties, TcxMemoProperties and TPanel objects can hold one of the following string values:

Value Meaning for TcxMemoProperties and TPanel Meaning for TcxCheckBoxProperties
taLeftJustify The text is aligned left. The check box and caption are aligned left. The check box is displayed on the left of the text.
taRightJustify The text is aligned right. The check box and caption are aligned right. The check box is displayed on the right of the text.
taCenter The text is centered. The check box is centered within the component. The text is not displayed.
Property Values Specific for TcxGroupBox and TcxRadioGroup components

The Alignment property of the TcxGroupBox and TcxRadioGroup objects can hold one of the following string values:

Value Description
alTopLeft The caption text is placed on the top edge and aligned to the left. This is the default value.
alTopCenter The caption text is placed on the top edge and centered horizontally.
alTopRight The caption text is placed on the top edge and aligned to the right.
alBottomLeft The caption text is placed on the bottom edge and aligned to the left.
alBottomCenter The caption text is placed on the bottom edge and centered horizontally.
alBottomRight The caption text is placed on the bottom edge and aligned to the right.
alLeftTop The caption text is placed on the left edge and aligned to the top.
alLeftCenter The caption text is placed on the left edge and centered vertically.
alLeftBottom The caption text is placed on the left edge and aligned to the bottom.
alRightTop The caption text is placed on the right edge and aligned to the top.
alRightCenter The caption text is placed on the right edge and centered vertically.
alRightBottom The caption text is placed on the right edge and aligned to the bottom.
alCenterCenter The caption is centered within the component horizontally and vertically.
Highlight search results