CComControl::GetAmbientTextAlign

HRESULT GetAmbientTextAlign( short& nTextAlign );

Return Value

One of the standard HRESULT values.

Parameters

nTextAlign

[out] The property DISPID_AMBIENT_TEXTALIGN.

Remarks

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.

CComControl OverviewClass Members

See Also   GetAmbient Property Methods