WebTextControl.TextAlign

From Xojo Documentation

Property (As Integer )
aWebTextControl.TextAlign = newIntegerValue
or
IntegerValue = aWebTextControl.TextAlign

New in 2015r4

Supported for all project types and targets.

The alignment for the text value of the control.

Notes

Constants:

  • AlignDefault = 0
  • AlignLeft = 1
  • AlignCenter = 2
  • AlignRight = 3

You can use this property instead of creating a separate style for the alignment and then applying the style to the control.

Example

Me.TextAlign = WebTextControl.AlignCenter