Exemplo n.º 1
0
 private void ScrollToElementAtLineNo(int lineNo)
 {
     if (ValidateMkdnExtension())
     {
         markdownPreviewForm.ScrollToElementWithLineNo(lineNo);
     }
     else
     {
         var    lastLine = scintillaGateway.GetLineCount();
         double percent  = (double)lineNo / lastLine;
         markdownPreviewForm.ScrollToHtmlLineNo(percent);
     }
 }
 private void ScrollToElementAtLineNo(int lineNo)
 {
     markdownPreviewForm.ScrollToElementWithLineNo(lineNo);
 }