Button.TextAlignment

Syntax

Button.TextAlignment

Data Type

ContentAlignmentStyles

Use the following constants with this data type:

  • ContentAlignmentStyle_BottomCenter –(Value: 8) Content is vertically aligned at the bottom and horizontally aligned in the center.
  • ContentAlignmentStyle_BottomLeft –(Value: 6) Content is vertically aligned at the bottom and horizontally aligned on the left.
  • ContentAlignmentStyle_BottomRight –(Value: 7) Content is vertically aligned at the bottom and horizontally aligned on the right.
  • ContentAlignmentStyle_MiddleCenter –(Value: 2) Content is vertically aligned in the middle and horizontally aligned in the center.
  • ContentAlignmentStyle_MiddleLeft –(Value: 0) Content is vertically aligned in the middle and horizontally aligned on the left.
  • ContentAlignmentStyle_MiddleRight –(Value: 1) Content is vertically aligned in the middle and horizontally aligned on the right.
  • ContentAlignmentStyle_TopCenter –(Value: 5) Content is vertically aligned at the top and horizontally aligned in the center.
  • ContentAlignmentStyle_TopLeft –(Value: 3) Content is vertically aligned at the top and horizontally aligned on the left.
  • ContentAlignmentStyle_TopRight –(Value: 4) Content is vertically aligned at the top and horizontally aligned on the right.

Purpose

Specifies the horizontal and vertical alignment of text on a Button control.

See Also

Button.Caption

Button.ImageAlignment

Button.ShowText

Button.TextImageRelation