Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

MergeWithLowerDefault Property, ColumnClass Class

Defines the CellBaseClass.MergeWithLower property default for cells in this column, whether cells in this column merge with cells below, in the same column.

Class: ColumnClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET

Syntax

public bool MergeWithLowerDefault { get; set; }
Public Property MergeWithLowerDefault As Boolean

Value

True if cells in this column merge with cells below, in the same column, otherwise False.

The default value is False.

Comments

Defines the CellBaseClass.MergeWithLower property default for cells in this column, whether cells in this column merge with cells below, in the same column.

The default settings for cell merging can be defined using these properties: ColumnClass.MergeWithLowerDefault is used for cells in the item area, RowHeadersClass.MergeWithLowerDefault for row headers, HeadersClass.MergeWithLowerDefault for cells in column headers and FootersClass.MergeWithLowerDefault for cells in column footers.

ColumnClass.MergeWithNextDefault and MergeWithLowerDefault should not be set to True at the same time to avoid intersecting merged cells (vertically and horizontally).

Examples

C#

            }
            // End of initialization

            // In this sample, vertical merging is based on identical cell text.
            sftTree1.MergeStyle = MergeStyleEnum.SameText;

            // set merging default for each column
            foreach (ColumnClass col in sftTree1.Columns.Collection) {
                col.MergeWithLowerDefault = true;
                col.AllowMergeFromUpperDefault = true;
            }
            // set merging default for headers and footers
            sftTree1.Headers.MergeWithLowerDefault = true;
            sftTree1.Headers.AllowMergeFromUpperDefault = true;
            sftTree1.Footers.MergeWithLowerDefault = true;
            sftTree1.Footers.AllowMergeFromUpperDefault = true;

VB.NET

    Next
    ' End of initialization

    ' In this sample, vertical merging is based on identical cell text.
    sftTree1.MergeStyle = MergeStyleEnum.SameText

    ' set merging default for each column
    For Each col As ColumnClass In sftTree1.Columns.Collection
        col.MergeWithLowerDefault = True
        col.AllowMergeFromUpperDefault = True
    Next
    ' set merging default for headers and footers
    sftTree1.Headers.MergeWithLowerDefault = True
    sftTree1.Headers.AllowMergeFromUpperDefault = True
    sftTree1.Footers.MergeWithLowerDefault = True
    sftTree1.Footers.AllowMergeFromUpperDefault = True

See Also ColumnClass Class | Classes | SftTree/NET 2.0



Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.