TX Text Control .NET Server

Javascript: TXTextControl.SaveSettings.CssSaveMode Enumeration

Enumeration|Introduced in 28.0

Description

HTML only. Specifies how to save stylesheet data with an HTML document.

Members

MemberDescription
NoneAll format information is saved in the body of the HTML document through HTML tags.
CreateFileStylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.
OverwriteFileStylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. If the file already exists, it is overridden. If the HTML document is saved in a memory buffer, this setting cannot be used.
InlineStylesheets are saved in the head of the HTML document.

Examples

The following example uses TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile (stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.) in a document-editing workflow.

const value = TXTextControl.Txtextcontrol.Savesettings.CssSaveMode.CreateFile;
console.log("Stylesheets are saved in a newly created CSS file. This file has the same name and location as the corresponding HTML file or is specified through the SaveSettings.CssFileName property. The file is only created if it does not exist. If the HTML document is saved in a memory buffer, this setting cannot be used.", value);