The horizontal alignment can be left-aligned, right-aligned or center aligned. Valid values are members of the TextHorizontalAlignmentConstants constant set. The TextEdit object always has an insert index or an active selection set. Setting any property on the TextEdit object applies to the current selection set, if one is present, or to the text at the current insert index.