Пример #1
0
        private static void ScrollToLine(int sectionImplementationLine)
        {
            var editor        = new ScintillaGateway(PluginBase.GetCurrentScintilla());
            int linesOnScreen = editor.LinesOnScreen();

            editor.SetFirstVisibleLine(sectionImplementationLine - linesOnScreen / 2 + 1 < 0 ? 0 : sectionImplementationLine - linesOnScreen / 2 + 1);
        }