src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/Provider/VirtualTree.cs
/// <summary>
///     Get the number of sub items for this item. The next non-blank item
///     in a given column is at row + GetSubItemCount(absRow, column) + 1
/// </summary>
/// <param name="absRow">The row coordinate</param>
/// <param name="column">The column coordinate</param>
/// <returns>The number of sub items immediately below this node.</returns>
Get the number of sub items for this item. The next non-blank item
in a given column is at row + GetSubItemCount(absRow, column) + 1
Get the number of sub items for this item . The next non - blank item in a given column is at row + GetSubItemCount ( absRow column ) + 1
protected int GetSubItemCount(int absRow, int column)
        {
            if (!MultiColumnSupport)
            {
                return 0;
            }
            else
            {
                TREENODE tn;
                if (absRow < 0)
                {
                    if (column > 0)
                    {
                        throw new ArgumentOutOfRangeException(
                            "column", VirtualTreeStrings.GetString(VirtualTreeStrings.GetSubItemCountExceptionDesc));
                    }
                    tn = myRootNode;
                }
                else
                {
                    var pos = TrackCell(absRow, ref column);
                    if (pos.IsBlank(column))
                    {
                        throw new ArgumentException(VirtualTreeStrings.GetString(VirtualTreeStrings.BlankSubItemException), "absRow");
                    }
                    tn = (column == 0) ? pos.ParentNode.GetChildNode(pos.Index) : null;
                }
                return (tn == null) ? 0 : tn.ImmedSubItemGain;
            }
        }
protected int GetSubItemCount ( int absRow , int column ) { if ( ! MultiColumnSupport ) { return 0 ; } else { TREENODE tn ; if ( absRow < 0 ) { if ( column > 0 ) { throw new ArgumentOutOfRangeException ( " " , VirtualTreeStrings . GetString ( VirtualTreeStrings . GetSubItemCountExceptionDesc ) ) ; } tn = myRootNode ; } else { var pos = TrackCell ( absRow , ref column ) ; if ( pos . IsBlank ( column ) ) { throw new ArgumentException ( VirtualTreeStrings . GetString ( VirtualTreeStrings . BlankSubItemException ) , " " ) ; } tn = ( column == 0 ) ? pos . ParentNode . GetChildNode ( pos . Index ) : null ; } return ( tn == null ) ? 0 : tn . ImmedSubItemGain ; } }
Get the number of sub items for this item.
Get the number of sub items for this item .
The number of sub items immediately below this node.
The number of sub items immediately below this node .
absRow
int
The row coordinate
The row coordinate
column
int
The column coordinate
The column coordinate