Пример #1
0
        private static void MoveLineDown()
        {
            var scintillaGateway = new ScintillaGateway(PluginBase.GetCurrentScintilla());

            scintillaGateway.SelectCurrentLine();
            scintillaGateway.MoveSelectedLinesDown();
            scintillaGateway.ClearSelectionToCursor();
        }
Пример #2
0
        /// <summary>Gibt eine Excel-Formatierte Liste zurück</summary>
        public void formatCurrentToExcel()
        {
            IScintillaGateway editor = new ScintillaGateway(PluginBase.GetCurrentScintilla());

            if (Punkte.Count > 0)
            {
                Position oldPos = editor.GetCurrentPos();
                editor.BeginUndoAction();
                editor.ClearAll();
                foreach (ClassCADdyPunkt item in Punkte)
                {
                    String temp = item.getExcelFormatString();
                    editor.AppendText(temp.Length + 1, temp + Environment.NewLine);
                }
                editor.ConvertEOLs(0);
                editor.EndUndoAction();
                editor.SetCurrentPos(oldPos);
                editor.ClearSelectionToCursor();
            }
        }