Bloom.Book.HtmlDom.AddStyleSheet C# (CSharp) Method

AddStyleSheet() public method

public AddStyleSheet ( string path ) : void
path string
return void
        public void AddStyleSheet(string path)
        {
            RawDom.AddStyleSheet(path);
        }

Usage Example

Example #1
0
 //while in Bloom, we could have and edit style sheet or (someday) other modes. But when stored,
 //we want to make sure it's ready to be opened in a browser.
 private void MakeCssLinksAppropriateForStoredFile(HtmlDom dom)
 {
     dom.RemoveModeStyleSheets();
     dom.AddStyleSheet("previewMode.css");
     dom.AddStyleSheet("basePage.css");
     EnsureHasLinksToStylesheets(dom);
     dom.SortStyleSheetLinks();
     dom.RemoveFileProtocolFromStyleSheetLinks();
 }
All Usage Examples Of Bloom.Book.HtmlDom::AddStyleSheet