Editor for WinForms | ComponentOne
C1.Win.C1Editor.4.8 Assembly / C1.Win.C1Editor Namespace / C1Editor Class / LoadPreviewCSS Method / LoadPreviewCSS(Stream) Method
The stream from which the design CSS is loaded.

In This Topic
    LoadPreviewCSS(Stream) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadPreviewCSS( _
       ByVal stream As System.IO.Stream _
    ) 
    public void LoadPreviewCSS( 
       System.IO.Stream stream
    )

    Parameters

    stream
    The stream from which the design CSS is loaded.
    Example
    string value = "p {color:red;}"; Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)); LoadDesignCSS(stream);
    See Also