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

RemoveStyleSheetIfFound() private method

private RemoveStyleSheetIfFound ( string path ) : void
path string
return void
        internal void RemoveStyleSheetIfFound(string path)
        {
            XmlDomExtensions.RemoveStyleSheetIfFound(RawDom, path);
        }

Usage Example

 private void EnsureDoesntHaveLinkToStyleSheet(HtmlDom dom, string path)
 {
     foreach (XmlElement link in dom.SafeSelectNodes("//link[@rel='stylesheet']"))
     {
         var fileName = link.GetStringAttribute("href");
         if (fileName == path)
         {
             dom.RemoveStyleSheetIfFound(path);
         }
     }
 }
All Usage Examples Of Bloom.Book.HtmlDom::RemoveStyleSheetIfFound