Alignment Property

Measurement Studio User Interface

Alignment Property

Syntax

CWNumEdit.Alignment

Data Type

CWAlignments

You can use the following constants with this data type:

  • cwuiBottomCenter–Bottom-center align.
  • cwuiBottomLeft–Bottom-left align.
  • cwuiBottomRight–Bottom-right align.
  • cwuiCenter–Center.
  • cwuiLeftJustify–Left align.
  • cwuiRightJustify–Right align.
  • cwuiTopCenter–Top-center align.
  • cwuiTopLeft–Top-left align.
  • cwuiTopRight–Top-right align.

Purpose

Specifies how the text within the CWNumEdit control is aligned.

Remarks

Currently, you can only use the cwuiCenter, cwuiLeftJustify, and cwuiRightJustify constants with the CWNumEdit.Alignment property.

Example

'Center the text in the CWNumEdit control
CWNumEdit1.TextAlignment = cwuiCenter