private void Document_HighlightsUpdated(object sender, Rectangle bb) { _eventCaptureSurface?.Dispose(); var spec = new HighlightSpec(_eventCaptureSurfaceStyle, bb); _eventCaptureSurface = HtmlHighlight.Create(this.MshtmlDocument, spec, OnMouseDownCallback, OnMouseMoveCallback, OnMouseUpCallback); }
protected override void CreateSelectionBox(Rectangle boundingBox) { var spec = new HighlightSpec(_selectionBoxStyle, boundingBox); _selectionBox?.Dispose(); _selectionBox = HtmlHighlight.Create(this.MshtmlDocument, spec); }
public HighlightSpec(HighlightSpec spec) : this(spec.Style, spec.BoundingBox) { }