TRVHTMLSaveProperties.CSSOptions

<< Click to display table of contents >>

TRVHTMLSaveProperties.CSSOptions

Options for saving CSS in HTML.

type // Defined in RVStyle.pas
  TRVHTMLCSSSaveOption = (
    rvcsssoForceNonTextCSS,
    rvcsssoNoDefCSSStyle   
  );
  TRVHTMLCSSSaveOptions = set of TRVHTMLCSSSaveOption;

 

property CSSOptions: TRVHTMLCSSSaveOptions;

(introduced in version 21)

Option

Meaning

rvcsssoForceNonTextCSS

If set, CSS is used for saving some non-text items (such as images and tables), even if HTMLSavingType = rvhtmlstSimplified.

rvcsssoNoDefCSSStyle

By default, TRichView assigns attributes of TextStyles[0] to <body> and <table>, and attributes of all other styles are saved relative to attributes of TextStyles[0].

If you include this option, TextStyles[0] will be treated like any other style. The same for ParaStyles[0].

It's not recommended to use this option: it generates much larger CSS and HTML.

This option is useful if HTML generated by TRichView is used as a part of larger HTML, and you do not want to change properties of <body> and <table>.

Default value:

[]