This documentation is archived and is not being maintained.

Visual Basic: Windows Controls

Visual Studio 6.0

TextAlignment Property

See Also    Example    Applies To

Returns or sets a value that determines the position of text relative to the button.


object.TextAlignment [= integer]

The TextAlignment property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
integer The position of the text, as shown in Settings.


The settings for integer are:

Constant Value Description
tbrTextAlignBottom 0 Text is aligned at the bottom of the button.
tbrTextAlignRight 1 Text is aligned to the right of the button.