다음을 통해 공유


Visual Basic: Windows Controls

TextAlignment Property

See Also    Example    Applies To

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

Syntax

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.

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.