Softelvdm.Controls Class Library for Windows Controls 1.0

GetMainCell Method, CellBaseClass Class

Softel vdm, Inc.

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

Syntax      CellBaseClass Class (Softelvdm.Controls)

VB   

Public Overridable Sub GetMainCell( _
     ByVal offset As Point, _
     cell As CellBaseClass )

C#   

public virtual void GetMainCell(
     Point offset,
     out CellBaseClass cell );

C++   

public: virtual void GetMainCell(
     Point^ offset,
     CellBaseClass^ cell );

cell

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

offset

Returns the location of the main cell that merges into the current cell, relative to the current cell.

Comments

The GetMainCell method 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.

If a cell is not a subordinate cell (or if it's a main cell), GetMainCell returns null/Nothing for the cell parameter.

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

SftTabs/NET 6.0: Cell merging is not used in this product.

Version Information

Supported in version 1.0.
Products Table


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