Sets the text alignment of the text box.

void SetTextAlign(
    int nAlign 

[in] nAlign

A text alignment enumerated value. See the Remarks section for possible values.

The parameter nAlign is one of the following edit control styles:

  • ES_LEFT for left alignment

  • ES_CENTER for center alignment

  • ES_RIGHT for right alignment

For more information about these styles, see Edit Control Styles.

Header: afxRibbonEdit.h