示例#1
0
 /// <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;
     }
 }
示例#2
0
 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;
 }
示例#3
0
 internal void SetSegment(Interop.IHighlightSegment ppISegment)
 {
     this.ppISegment = ppISegment;
 }