Skip to main content
A newer version of this page is available. .
.NET Framework 4.5.2+

RichEditControlCompatibility.MergeSuccessiveTables Property

Specifies whether to merge the inserted table with the successive table.

Namespace: DevExpress.XtraRichEdit

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

NuGet Package: DevExpress.RichEdit.Core

Declaration

[DefaultValue(true)]
public static bool MergeSuccessiveTables { get; set; }

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

    IMAGE

  • MergeSuccessiveTables = false

    IMAGE

See Also