CRichEditCtrl::GetParaFormat
Visual Studio 2012
Gets the paragraph formatting attributes of the current selection.
DWORD GetParaFormat( PARAFORMAT& pf ) const; DWORD GetParaFormat( PARAFORMAT2& pf ) const;
If more than one paragraph is selected, pf receives the attributes of the first selected paragraph. The return value specifies which attributes are consistent throughout the selection.
For more information, see the EM_GETPARAFORMAT message and the PARAFORMAT and PARAFORMAT2 structures in the Windows SDK.
See the example for CRichEditCtrl::SetParaFormat.