NativeExcel2 for .Net Developer's Reference

ICharacters.DeleteMethod

Deletes characters represented by specified Characters object.

[Visual Basic]
SubDelete()
[C#]
voidDelete();
[C++]
voidDelete();
[JScript]
functionDelete();

Example

This example deletes substring from A1 cell value

[C#]
book.Worksheets[1].Range["A1"].Characters[3,4].Delete();
[VisualBasic]
book.Worksheets(1).Range("A1").Characters(3,4).Delete()
[C++]
book->Worksheets->Item[1]->Range->Item[S"A1"]->Characters->Item[3,4]->Delete();

See Also

ICharacters Interface | NativeExcel Namespace