[]
Loads the preview CSS from a given file.
public void LoadPreviewCSS(string fileName)
Type | Name | Description |
---|---|---|
string | fileName | The file from which the preview CSS is loaded. |
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.
public void LoadPreviewCSS(Stream stream)
Type | Name | Description |
---|---|---|
Stream | stream | The stream from which the design CSS is loaded. |
string value = "p {color:red;}"; Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)); LoadDesignCSS(stream);