共用方式為


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

Reference

CMFCRibbonEdit Class

Hierarchy Chart