Back to Devexpress

RichEditControlCompatibility.MergeSuccessiveTables Property

officefileapi-devexpress-dot-xtrarichedit-dot-richeditcontrolcompatibility.md

latest2.5 KB
Original Source

RichEditControlCompatibility.MergeSuccessiveTables Property

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

Namespace : DevExpress.XtraRichEdit

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

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
[DefaultValue(true)]
public static bool MergeSuccessiveTables { get; set; }
vb
<DefaultValue(True)>
Public Shared Property MergeSuccessiveTables As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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:

csharp
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);
}
vb
Private Sub CreateTable(ByVal document As Document)
    document.Tables.Create(document.Range.Start, 2, 3, AutoFitBehaviorType.AutoFitToWindow)
    document.Tables.Create(document.Tables(0).Range.[End], 2, 2, AutoFitBehaviorType.AutoFitToContents)
End Sub
  • MergeSuccessiveTables = true

  • MergeSuccessiveTables = false

See Also

RichEditControlCompatibility Class

RichEditControlCompatibility Members

DevExpress.XtraRichEdit Namespace