Show/Hide Toolbars

EmEditor Help

Navigation: EmEditor Help > Macro Reference > Selection Object > Methods

EmEditor Macro Reference: Delete Method

Scroll Prev Top Next More
EmEditor Home - EmEditor Help - EmEditor Macro Reference - Selection Object

Delete Method

Deletes the selected text. If the selection is empty, deletes the specified number of characters to the right of the cursor.


document.selection.Delete( [[ nCount ], bComplete ] );


document.selection.Delete [[ nCount ], bComplete ]



Optional. Specifies the number of characters to delete to the right of the cursor. The default is 1. If negative, the method acts like the DeleteLeft Method. If 0, the method acts like 1.


Optional. Specifies whether to delete the selection completely in cell selection mode. If omitted, True is specified.


Supported on EmEditor Professional Version 4.00 or later.

Copyright © 2003-2016 by Emurasoft, Inc.