Alignment Property

Purpose

Returns or sets a value that determines the text alignment in an object.

Syntax

object.Alignment [= number]

object:Label, TextBox, Panel Ocx Object
number:iexp

Description

For Label, TextBox, and Panel objects, the settings for number are:

Constant Setting Description
basLeftJustify 0 (Default) Text is left-aligned.
basRightJustify 1 Text is right-aligned.
basCenter 2 Text is centered.

Example

lbl1.Alignment = basCenter

See Also

Label, TextBox, Panel

{Created by Sjouke Hamstra; Last updated: 12/05/14 by James Gaite}