/* * internal bool IsSameRun(System.Windows.Documents.Run run) * { * if(run. * }*/ /// <summary> /// Selects the highlight as the current highlight when iterating through hits, bringing the control to focus. /// </summary> public virtual void Select() { if (BodyAdorner != null) { BodyAdorner.IterativeHighlight(); } }
/// <summary> /// Deselects the highlight. /// </summary> public virtual void Deselect() { if (BodyAdorner != null) { BodyAdorner.NormalHighlight(); } }
/// <summary> /// Move highlight to a different part of the current run. /// </summary> public void MoveTo(int start, int end) { if (BodyAdorner != null) { BodyAdorner.BumpUnderlineTo(run, start, end); } s = start; e = end; }