CRichEditView::SetParaFormat

BOOL SetParaFormat( PARAFORMAT& pf );

Return Value

Nonzero if successful; otherwise, 0.

Parameters

pf

PARAFORMAT structure containing the new default paragraph formatting attributes.

Remarks

Call this function to set the paragraph formatting attributes for the current selection in this CRichEditView object. Only the attributes specified by the dwMask member of pf are changed by this function.

For more information, see EM_SETPARAFORMAT message and PARAFORMAT structure in the Win32 documentation.

Example

void CMyRichEditView::AddBullets() 
{
   PARAFORMAT pf;

   pf.cbSize = sizeof(PARAFORMAT);
   pf.dwMask = PFM_NUMBERING | PFM_OFFSET;
   pf.wNumbering = PFN_BULLET;
   pf.dxOffset = 10;

   VERIFY( SetParaFormat( pf ) );
}

CRichEditView OverviewClass MembersHierarchy Chart

See Also   CRichEditView::GetParaFormatSelection, CRichEditView::SetCharFormat