} // 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(); }
/// <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(); }
private void InnerBookmark_LocationChanged(object sender, EventArgs e) { LineIndex = InnerBookmark.Location.Line - 1; TB.Invalidate(new Rectangle(0, 0, TB.LeftIndent, TB.Height)); }