[]
Loads a design CSS from a given file. The base URL is inferred from the file location.
public void LoadDesignCSS(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | The file from which the design CSS is loaded. |
Loads a design CSS from a given stream.
public void LoadDesignCSS(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | The stream from which the design CSS is loaded. |
Base URL is not specified because this method only handles a simple, self-contained CSS. The stream must be encoded in UTF-8.
string value = "p {color:red;}"; Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)); LoadDesignCSS(stream);