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

In This Topic
    LoadDesignCSS(Stream) Method
    In This Topic
    Loads a design CSS from a given stream.
    Syntax
    'Declaration
     
    Public Overloads Sub LoadDesignCSS( _
       ByVal stream As System.IO.Stream _
    ) 
    public void LoadDesignCSS( 
       System.IO.Stream stream
    )

    Parameters

    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.
    Example
    string value = "p {color:red;}"; Stream stream = new MemoryStream(Encoding.UTF8.GetBytes(value)); LoadDesignCSS(stream);
    See Also