Beispiel #1
0
/*
 *      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();
            }
        }
Beispiel #2
0
 /// <summary>
 /// Deselects the highlight.
 /// </summary>
 public virtual void Deselect()
 {
     if (BodyAdorner != null)
     {
         BodyAdorner.NormalHighlight();
     }
 }
Beispiel #3
0
 /// <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;
 }