Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

PreviousMainCell Property, CellBaseClass Class

Returns the next main cell preceding the current cell.

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

Syntax

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

Value

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

Comments

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.

CellClass.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.

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

See Also CellBaseClass Class | Classes | SftTree/NET 2.0