示例#1
0
        }                                          // By WendyH

        /// <summary>
        /// Scroll textbox to the bookmark
        /// </summary>
        public virtual void DoVisible()
        {
            // By WendyH < -----------------
            if (CharIndex >= TB.Lines[0].Length)
            {
                CharIndex = 0;
            }
            // By WendyH > -----------------
            TB.Selection.Start = new Place(0, LineIndex);
            TB.DoRangeVisible(TB.Selection, true);
            TB.Invalidate();
        }
示例#2
0
 /// <summary>
 /// Scroll textbox to the bookmark
 /// </summary>
 public virtual void DoVisible()
 {
     TB.Selection.Start = new Place(0, LineIndex);
     TB.DoRangeVisible(TB.Selection, true);
     TB.Invalidate();
 }
示例#3
0
 private void InnerBookmark_LocationChanged(object sender, EventArgs e)
 {
     LineIndex = InnerBookmark.Location.Line - 1;
     TB.Invalidate(new Rectangle(0, 0, TB.LeftIndent, TB.Height));
 }