Skip to main content

IdxRichEditCharacterStyle.Primary Property

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

Declaration

property Primary: Boolean read; write;

Property Value

Type
Boolean

Remarks

A primary character or 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 character 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 character style status in different ways as listed in the IdxRichEditParagraphStyle.Primary property description.

The default Primary property value is False.

See Also