CMFCRibbonEdit::SetTextAlign

Sets the text alignment of the text box.

void SetTextAlign(
    int nAlign 
);

Parameters

  • [in] nAlign
    A text alignment enumerated value. See the Remarks section for possible values.

Remarks

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.

Requirements

Header: afxRibbonEdit.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCRibbonEdit Class

Change History

Date

History

Reason

September 2008

Updated whole topic.

Information enhancement.