/// <summary> /// This method removes the highlight decoration from the segment. /// </summary> public void RemoveSegment() { if (ppISegment != null) { this.render.RemoveSegment(this.ppISegment); this.ppISegment = null; } }
internal HighLightSegment(Interop.IHighlightRenderingServices render, Interop.IHTMLRenderStyle renderStyle, Interop.IDisplayPointer dpStart, Interop.IDisplayPointer dpEnd, Interop.IHTMLTxtRange range) { Interop.IHighlightSegment ppI; this.render = render; this.range = range; this.render.AddSegment(dpStart, dpEnd, renderStyle, out ppI); this.ppISegment = ppI; }
internal void SetSegment(Interop.IHighlightSegment ppISegment) { this.ppISegment = ppISegment; }