SftTree/NET 2.0 - Tree Control for Windows Forms


NextMainCell Property, CellBaseClass Class

Returns the next main cell following the current cell.

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


public virtual CellBaseClass NextMainCell { get; }
Public ReadOnly Overridable Property NextMainCell As CellBaseClass


The next main cell or null/Nothing if no more cells are present.


Returns the next main cell following the current cell.

Main cells can consist of many subordinate cells. In order to navigate from one main cell to another, the NextMainCell property can be used.

CellClass.NextDisplayed and ColumnClass.NextDisplayed can be used to navigate from one cell to the following cell. This moves from one cell to the next without taking cell merging into account. NextMainCell will skip cells that are merged and locates the next main cell.

NextMainCell will not wrap around when the cell is in the last column.

CellBaseClass.PreviousMainCell returns the next main cell to the left, CellBaseClass.UpperMainCell and CellBaseClass.LowerMainCell locate the upper and lower cell respectively.

See Also CellBaseClass Class | Classes | SftTree/NET 2.0