Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IdxRichEditParagraphStyle.Primary Property

Specifies whether the paragraph style is primary for a parent document.

#Declaration

Delphi
property Primary: Boolean read; write;

#Property Value

Type
Boolean

#Remarks

A primary paragraph style is considered public, and is available for use via an application’s UI elements, such as the Rich Edit control’s automatically generated Styles Gallery.

Set the Primary property to True or False to publish or hide the paragraph style in an opened document. Only the RTF, DOCX, and DOC file import and export routines take this property value into account. Different supported document formats persist a paragraph style status in different ways:

Format Format Availability Paragraph Style Status
RTF (rich text) Available out-of-the-box. The \sqformat attribute.
TXT (plain text) Available out-of-the-box. Not supported
HTML (web) Add the dxRichEdit.Html unit to the ‘uses’ clause. Not supported
DOC (binary) Add the dxRichEdit.Doc unit to the ‘uses’ clause. A boolean flag
DOCX (Office OpenXML) Add the dxRichEdit.OpenXML unit to the ‘uses’ clause. The <qFormat> tag.

The default Primary property value is False.

See Also