Back to Devexpress

TableCell.Split(Int32, Int32) Method

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-tablecell-dot-split-x28-system-dot-int32-system-dot-int32-x29.md

latest5.1 KB
Original Source

TableCell.Split(Int32, Int32) Method

Splits a single table cell into multiple cells.

Namespace : DevExpress.XtraRichEdit.API.Native

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
void Split(
    int rowsCount,
    int columnCount
)
vb
Sub Split(
    rowsCount As Integer,
    columnCount As Integer
)

Parameters

NameTypeDescription
rowsCountInt32

The number of rows that the cell is to be split into.

| | columnCount | Int32 |

The number of columns that the cell is to be split into.

|

The following code snippets (auto-collected from DevExpress Examples) contain references to the Split(Int32, Int32) 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-document-api/CS/RichEditAPISample/CodeExamples/Table.cs#L238

csharp
//split a cell into three:
table.Cell(2, 1).Split(1, 3);
#endregion #SplitCells

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

csharp
//split a cell to three:
table.Cell(2, 1).Split(1, 3);
#endregion #SplitCells

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

csharp
// Split cell into 8
table[3, 2].Split(4, 2);

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

csharp
// Split a cell vertically to three cells.
table.Cell(2, 1).Split(1, 3);
#endregion #SplitCells

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

csharp
//Split cell into 8
table[3, 1].Split(4, 2);

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

vb
'split a cell into three:
            table.Cell(CInt((2)), CInt((1))).Split(1, 3)
#End Region ' #SplitCells

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

vb
'split a cell to three:
            table.Cell(2, 1).Split(1, 3)
' #End Region ' #SplitCells

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

vb
' Split cell into 8
table(3, 2).Split(4, 2)
' Merge cells

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

vb
' Split a cell vertically to three cells.
            table.Cell(CInt((2)), CInt((1))).Split(1, 3)
#End Region ' #SplitCells

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

vb
'Split cell into 8
table(3, 1).Split(4, 2)
'Merge cells

See Also

TableCell Interface

TableCell Members

DevExpress.XtraRichEdit.API.Native Namespace