<< Click to display table of contents >> TRVDocumentProperty.AutoDeleteUnusedStyles |
If this property is set to True, the component deletes unused text, paragraph and list styles before loading.
property AutoDeleteUnusedStyles: Boolean;
This property controls loading from TBlobField linked to this TRichView using LiveBindings (Delphi XE2+)
If FieldFormat = rvdbRTF, rvdbDocX, rvdbHTML, unused styles are auto-deleted even if AutoDeleteUnusedStyles = False.
It's highly recommended to assign True to this property. However, the following conditions are required to auto-delete styles correctly:
▪this component must not share TRVStyle component with other TRichView controls (others TRichView controls must not be linked to the same TRVStyle component via Style property) and
▪if the owner of this property is TRichViewEdit, and documents are created in this editor and saved as RVF, the collections of text, paragraph and list styles must be saved together with documents (see RVFOptions, rvfoSaveTextStyles and rvfoSaveParaStyles must be included for AutoDeleteUnusedStyles = True).
Default value:
False
See also