Share via


CComControlBase::GetAmbientTextAlign

Retrieves DISPID_AMBIENT_TEXTALIGN, the text alignment preferred by the container: 0 for general alignment (numbers right, text left), 1 for left alignment, 2 for center alignment, and 3 for right alignment.

HRESULT GetAmbientTextAlign( 
   short& nTextAlign  
);

Parameters

  • nTextAlign
    The property DISPID_AMBIENT_TEXTALIGN.

Return Value

One of the standard HRESULT values.

Requirements

Header: atlctl.h

See Also

Reference

CComControlBase Class