HTextAlign

Applies to

PictureButton controls

Description

The HTextAlign property specifies whether text in the PictureButton control is right aligned, left aligned, or centered horizontally.

Usage

In a painter

To set the horizontal alignment of text:

  • Select the desired alignment from the Horizontal Alignment drop-down list on the General tab of the control's Properties view, or use the Left, Right, and Center alignment buttons on the StyleBar.

In scripts

The HTextAlign property takes a value of the Alignment enumerated datatype.

The following example specifies right alignment for text in a PictureButton.

pb_1.HTextAlign = Right!