public void IndentLines(int beginLine, int endLine) { SD.MainThread.InvokeIfRequired(() => { using (IDisposable undoGroup = TextEditor.Document.OpenUndoGroup()) { FormattingStrategy.IndentLines(TextEditor, beginLine, endLine); } }); }
public void IndentLines(int beginLine, int endLine) { if (WorkbenchSingleton.InvokeRequired) { WorkbenchSingleton.SafeThreadCall(() => IndentLines(beginLine, endLine)); } else { using (IDisposable undoGroup = TextEditor.Document.OpenUndoGroup()) { FormattingStrategy.IndentLines(TextEditor, beginLine, endLine); } } }