Alignment Property (ARadioButton)

Returns or sets control over the position of the text next to the ARadioButton (left or right) at run time.

Syntax

Object.Alignment [ = enARadioButtonAlignment ]

The Alignment property syntax has the following parts:

 

Name

Type

Description

Object

ARadioButton

ARadioButton control

enARadioButtonAlignment

enumARadioButtonAlignment

An integer specifying the type of alignment

Where

enumARadioButtonAlignment can be one of the following:

 

Name

Value

Description

aradLeft

0 *

The radiomark is left-aligned; the text is right-aligned.

aradRight

1

The radiomark is right-aligned; the text is left-aligned.

Comments

Text can be aligned to either the right or left in an ARadioButton control. Be default, the text is right-aligned (on the right side of the ARadioButton). This property can be set at design time or run time.

Example

The following statement changes the ARadioButton Alignment to the left of the radiomark:

rad1.Alignment=aradLeft

Applies to

ARadioButton

See Also

Height, Left, Top, Width