コード例 #1
0
        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);
        }
コード例 #2
0
        protected override void CreateSelectionBox(Rectangle boundingBox)
        {
            var spec = new HighlightSpec(_selectionBoxStyle, boundingBox);

            _selectionBox?.Dispose();
            _selectionBox = HtmlHighlight.Create(this.MshtmlDocument, spec);
        }
コード例 #3
0
 public HighlightSpec(HighlightSpec spec) : this(spec.Style, spec.BoundingBox)
 {
 }