SftTree/NET 2.0 - Tree Control for Windows Forms


PreviousMainCell Property, CellClass Class

Returns the next main cell preceding the current cell.

Class: CellClass
Namespace: Softelvdm.SftTreeNET
Assembly: Softelvdm.SftTreeNET


public CellClass PreviousMainCell { get; }
Public ReadOnly Property PreviousMainCell As CellClass


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


Returns the next main cell preceding the current cell.

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

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

PreviousMainCell will not wrap around when the cell is in the first column.

CellClass.NextMainCell returns the next main cell to the right, CellClass.UpperMainCell and CellClass.LowerMainCell locate the upper and lower cell respectively.

See Also CellClass Class | Classes | SftTree/NET 2.0