[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1Editor.LoadPreviewCSS

LoadPreviewCSS Method

LoadPreviewCSS(string)

Loads the preview CSS from a given file. Base URL is inferred from the file location.

Declaration
public void LoadPreviewCSS(string fileName)
Parameters
Type Name Description
string fileName

The file from which the preview CSS is loaded.

LoadPreviewCSS(Stream)

Loads the preview CSS from a given stream. The base URL is not given; it assumes a simple, self-contained CSS. It also assumes the stream is encoded in UTF8.

Declaration
public void LoadPreviewCSS(Stream stream)
Parameters
Type Name Description
Stream stream

The stream from which the design CSS is loaded.

Examples

string value = "p {color:red;}"; Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)); LoadDesignCSS(stream);