static public void ScrollToCaret(this ScintillaGateway document)
 {
     document.ScrollCaret();
     document.LineScroll(0, 1); //bottom scrollbar can hide the line
     document.ScrollCaret();
 }