// Applies the given css document public void applyCss(CssDocument pmCss) { // Variables List<HtmlElement> elems= new List<HtmlElement>(); for(int h= 0; h< pmCss.code.size; h++) { for(int k= 0; k< pmCss.code.items[h].selections.selections.size; k++) { find(pmCss.code.items[h].selections.selections.items[k], ref elems); for(int i= 0; i< elems.size; i++) { elems.items[i].style.applyCssCode(pmCss.code.items[h].code); } elems.clear(); } } }
public HtmlDocument() { children= new List<HtmlElement>(); css= new CssDocument(); windowSize= new Size(0, 0); }