src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerTreeControl.cs
/// <summary>
///     Gets the last column index for the given branch/row.  Accounts for
///     jagged columns
/// </summary>
Gets the last column index for the given branch/row.  Accounts for
jagged columns
Gets the last column index for the given branch / row . Accounts for jagged columns
private static int GetLastColumnIndex(IBranch branch, int relIndex)
        {
            var multiBranch = branch as IMultiColumnBranch;
            if (multiBranch != null)
            {
                if ((branch.Features & BranchFeatures.JaggedColumns) != 0)
                {
                    return multiBranch.GetJaggedColumnCount(relIndex) - 1;
                }
                else
                {
                    return multiBranch.ColumnCount - 1;
                }
            }
            return 0;
        }
private static int GetLastColumnIndex ( IBranch branch , int relIndex ) { var multiBranch = branch as IMultiColumnBranch ; if ( multiBranch != null ) { if ( ( branch . Features & BranchFeatures . JaggedColumns ) != 0 ) { return multiBranch . GetJaggedColumnCount ( relIndex ) - 1 ; } else { return multiBranch . ColumnCount - 1 ; } } return 0 ; }
Gets the last column index for the given branch/row.
Gets the last column index for the given branch / row .
branch
IBranch
relIndex
int