/* Function: AddOnLoad */ public void AddOnLoad(string onLoadString, Builders.HTML.PageType type = Builders.HTML.PageType.All) { if (onLoad == null) { onLoad = new List <HTMLStyleOnLoadStatement>(); } HTMLStyleOnLoadStatement entry = new HTMLStyleOnLoadStatement(); entry.Type = type; entry.Statement = onLoadString; onLoad.Add(entry); }
/* Function: AddLinkedFile */ public void AddLinkedFile(Path file, Builders.HTML.PageType type = Builders.HTML.PageType.All) { if (links == null) { links = new List <HTMLStyleFileLink>(); } HTMLStyleFileLink entry = new HTMLStyleFileLink(); entry.Type = type; entry.File = file; links.Add(entry); }