Skip to content

Commit 67d9c95

Browse files
committed
Merge pull request #46 from nippur72/editor-delete
Added TextEditor.Delete()
2 parents 3219b0e + 4356096 commit 67d9c95

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

ICSharpCode.AvalonEdit/TextEditor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,14 @@ public IDisposable DeclareChangeBlock()
579579
return GetDocument().RunUpdate();
580580
}
581581

582+
/// <summary>
583+
/// Removes the current selection without copying it to the clipboard.
584+
/// </summary>
585+
public void Delete()
586+
{
587+
Execute(ApplicationCommands.Delete);
588+
}
589+
582590
/// <summary>
583591
/// Ends the current group of document changes.
584592
/// </summary>

0 commit comments

Comments
 (0)