SftTree/NET 2.0

MainCell Property, CellClass Class

Softel vdm, Inc.

Returns the main cell, if the current cell is part of the main cell due to cell merging.

Syntax      CellClass Class (Softelvdm.SftTreeNET)

VB   

Public ReadOnly Property MainCell As CellClass
Public ReadOnly Property MainCell As CellBaseClass

C#   

public CellClass MainCell { get; }
public CellBaseClass MainCell { get; }

C++   

public: property CellClass^ MainCell {
        CellClass^ get();
}
public: property CellBaseClass^ MainCell {
        CellBaseClass^ get();
}

Property Value

The main cell that merges into the current cell or null/Nothing if the current cell isn't part of a merged cell.

Comments

The MainCell property returns the main cell, if the current cell is part of the main cell due to cell merging.

Any subordinate cell is owned by a main cell. The main cell occupies the space of all its subordinate cells.

The MainCell property can be used to retrieve any subordinate cell's owning main cell.

If a cell is not a subordinate cell, MainCell returns null/Nothing. The MainCell property returns null/Nothing when used with a main cell.

The GetMainCell method can also be used to retrieve any subordinate cell's owning main cell. The Main property is identical to the GetMainCell method, except that GetMainCell also returns the relative position of the main cell (offset argument).


Feedback / comments / error reports for this topic
© 2007 - Softel vdm, Inc. - www.softelvdm.com