Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

CanMergeWithUpper Property, CellBaseClass Class

Returns whether this cell is empty or has the same cell text and can be merged with the cell above.

Class: CellBaseClass
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public bool CanMergeWithUpper { get; }
Public ReadOnly Property CanMergeWithUpper As Boolean

Value

True if this cell is empty or has the same cell text and can be merged with the cell above, otherwise False.

Comments

Returns whether this cell is empty or has the same cell text and can be merged with the cell above.

This property test whether this cell allows merging with the cell above (CellBaseClass.EvaluatedAllowMergeFromUpper) and whether the upper cell merges into this cell (CellBaseClass.EvaluatedMergeWithLower) and whether this cell is empty or has the same cell text. If all tests are satisfied, this property returns True indicating this cell is part of a merged cell and is a subordinate cell. Otherwise, this is a main cell and the property returns False.

The control's SoftelvdmUserControl.MergeStyle property determines whether empty cells or cells with the same cell text are candidates for cell merging.

See Also CellBaseClass Class | Classes | SftTree/NET 2.0