RichEditControlCompatibility.MergeSuccessiveTables Property
Specifies whether to merge the inserted table with the successive table.
Namespace: DevExpress.XtraRichEdit
Assembly: DevExpress.RichEdit.v20.2.Core.dll
NuGet Package: DevExpress.RichEdit.Core
NuGet Packages: DevExpress.RichEdit.Core, DevExpress.WindowsDesktop.RichEdit.Core
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | **true** | true, to merge successive tables; otherwise, false. |
Remarks
When you call the TableCollection.Create method to insert a new table right before of after the existing table, these tables are merged, and the Create method returns the resulting table.
Set this property to false to keep successive tables separate.
The images below show how the tables are displayed depending on the MergeSuccessiveTables property value. The code sample below shows how these tables are inserted:
private void CreateTable(Document document)
{
document.Tables.Create(document.Range.Start,2,3,AutoFitBehaviorType.AutoFitToWindow);
document.Tables.Create(document.Tables[0].Range.End, 2, 2, AutoFitBehaviorType.AutoFitToContents);
}
MergeSuccessiveTables = true
MergeSuccessiveTables = false