CheckBox.TextAlign

Syntax

CheckBox.TextAlign

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 CheckBox control.

Remarks

When the style of the control is CheckBoxStyle_Normal , the control supports only the ContentAlignmentStyle_MiddleLeft and ContentAlignmentStyle_MiddleRight values.

See Also

CheckBox.Style

CheckBoxStyles