Selection.Delete Method
Office 2003
Deletes the specified number of characters or words.
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
Assembly: Microsoft.Office.Interop.Word (in microsoft.office.interop.word.dll)
public int Delete( /*in*/System.Object Unit, /*in*/System.Object Count );
function Delete( Unit : Object, Count : Object ) : int;
Parameters
- Unit
Optional Object. The unit by which the collapsed range or selection is to be deleted. Can be one of the following WdUnits constants: wdCharacter (default) or wdWord.
- Count
Optional Object. The number of units to be deleted. To delete units after the selection, collapse the selection and use a positive number. To delete units before the selection, collapse the selection and use a negative number.