/// <summary> /// Marks the complete row specified by the given table row or cell /// with the given color. /// </summary> public void MarkTableRow(HtmlElement start, Color color) { start.Require(x => start != null); HtmlTable.GetRow(myDocument.Create(start)) .OfType <HtmlElementAdapter>() .Foreach(e => MarkElement(e.Element, color)); }
private void HtmlDocument_Click(object sender, HtmlElementEventArgs e) { var element = HtmlMarkupAutomationProvider.GetClickedElement(Document.Document); if (element == null) { element = Document.Document.GetElementFromPoint(e.ClientMousePosition); } SelectedElement = Document.Create(element); }
private void HtmlDocument_Click(object sender, HtmlElementEventArgs e) { SelectedElement = myDocument.Create(myDocument.Document.GetElementFromPoint(e.ClientMousePosition)); }