[]
        
(Showing Draft Content)

C1.Win.C1Editor.C1Editor.LoadDesignCSS

LoadDesignCSS Method

LoadDesignCSS(string)

Loads a design CSS from a given file. The base URL is inferred from the file location.

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

The file from which the design CSS is loaded.

LoadDesignCSS(Stream)

Loads a design CSS from a given stream.

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

The stream from which the design CSS is loaded.

Remarks

Base URL is not specified because this method only handles a simple, self-contained CSS. The stream must be encoded in UTF-8.

Examples

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