IdxRichEditParagraphStyle.Primary Property
Specifies whether the paragraph style is primary for a parent document.
Declaration
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