Exemplo n.º 1
0
        private void ExportDocumentModule(string path)
        {
            var lineCount = CodeModule.CountOfLines;

            if (lineCount > 0)
            {
                var text = CodeModule.GetLines(1, lineCount);
                File.WriteAllText(path, text);
            }
        }
Exemplo n.º 2
0
        private Selection GetSelection()
        {
            int startLine;
            int startColumn;
            int endLine;
            int endColumn;

            Target.GetSelection(out startLine, out startColumn, out endLine, out endColumn);

            if (endLine > startLine && endColumn == 1)
            {
                endLine  -= 1;
                endColumn = CodeModule.GetLines(endLine, 1).Length;
            }

            return(new Selection(startLine, startColumn, endLine, endColumn));
        }