Skip to content

Commit 4356096

Browse files
committed
Added TextEditor.Delete()
1 parent a59f8ae commit 4356096

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)