Back to Devexpress

TableCell.Delete() Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablecell-4a3258c7.md

latest4.5 KB
Original Source

TableCell.Delete() Method

Deletes a cell and shifts the next cell to the left.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Delete()
vb
Sub Delete

Remarks

If you remove the last existing cell in a row, the entire row will be deleted.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Delete() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-richedit-tables-simple-example/CS/TablesSimpleExample/Form1.cs#L237

csharp
// Delete a cell
table.Cell(1, 1).Delete();

word-document-api-table-examples/CS/Program.cs#L259

csharp
//Delete a cell
tbl.Cell(1, 1).Delete();

winforms-richedit-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L247

csharp
//Delete a cell:
tbl.Cell(1, 1).Delete();
//Delete a row:

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/TableActions.cs#L251

csharp
tbl.Rows[2].Delete();
tbl.Cell(1, 1).Delete();

word-document-api-examples/CS/CodeExamples/TablesActions.cs#L358

csharp
// Delete a cell.
tbl.Cell(1, 1).Delete();

winforms-richedit-tables-simple-example/VB/TablesSimpleExample/Form1.vb#L192

vb
' Delete a cell
table.Cell(1, 1).Delete()
' Delete a row

word-document-api-table-examples/VB/Program.vb#L209

vb
'Delete a cell
tbl.Cell(1, 1).Delete()
'Delete a row

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Table.vb#L222

vb
'Delete a cell:
tbl.Cell(CInt((1)), CInt((1))).Delete()
'Delete a row:

wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/TableActions.vb#L222

vb
tbl.Rows(2).Delete()
tbl.Cell(1, 1).Delete()

word-document-api-examples/VB/CodeExamples/TablesActions.vb#L306

vb
' Delete a cell.
tbl.Cell(CInt((1)), CInt((1))).Delete()
' Finalize to modify the table.

See Also

TableCell Interface

TableCell Members

DevExpress.XtraRichEdit.API.Native Namespace