src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerBranch.cs
/// <summary>
///     Returns the text for the given cell
/// </summary>
/// <param name="row">Index into this branch</param>
/// <param name="column">Column index</param>
/// <returns></returns>
Returns the text for the given cell
Returns the text for the given cell
protected virtual string GetText(int row, int column)
        {
            if (_insertingIndex != -1)
            {
                if (row == _insertingIndex)
                {
                    return String.Empty;
                }
                else if (row > _insertingIndex)
                {
                    row--;
                }
            }
            var eltCount = ElementCount;
            if (row < eltCount)
            {
                var mappingElement = GetElement(row);
                var value = _columns[column].GetValue(mappingElement);
                return value != null ? value.ToString() : String.Empty;
            }
            else if (column == 0)
            {
                return GetCreatorNodeText(row - eltCount);
            }
            else
            {
                return String.Empty;
            }
        }
protected virtual string GetText ( int row , int column ) { if ( _insertingIndex != - 1 ) { if ( row == _insertingIndex ) { return String . Empty ; } else if ( row > _insertingIndex ) { row -- ; } } var eltCount = ElementCount ; if ( row < eltCount ) { var mappingElement = GetElement ( row ) ; var value = _columns [ column ] . GetValue ( mappingElement ) ; return value != null ? value . ToString ( ) : String . Empty ; } else if ( column == 0 ) { return GetCreatorNodeText ( row - eltCount ) ; } else { return String . Empty ; } }
Returns the text for the given cell
Returns the text for the given cell
// account for element insertion mode // no need to return text for the insertion row itself // Note: value is actually a MappingLovEFElement
None
row
int
Index into this branch
Index into this branch
column
int
None