src/Misc/EFTools/DesignXmlCore/Base/Shell/HeaderBranch.cs
/// <summary>
///     Derived classes may override to provide custom object location.  The base class
///     provides implementation for ExpandedBranch and TrackingObject styles
/// </summary>
/// <param name="row"></param>
/// <param name="column"></param>
/// <param name="style"></param>
Derived classes may override to provide custom object location.  The base class
provides implementation for ExpandedBranch and TrackingObject styles
Derived classes may override to provide custom object location . The base class provides implementation for ExpandedBranch and TrackingObject styles
protected virtual object GetObject(int row, int column, ObjectStyle style)
        {
            switch (style)
            {
                case ObjectStyle.ExpandedBranch:
                    Debug.Assert(column == 0); 
                    return _currentBranches[row].Branch;
                case ObjectStyle.TrackingObject:
                    return _currentBranches[row].Id;
                default:
                    if (style == TreeGridDesignerBranch.BrowsingObject)
                    {
                        goto case ObjectStyle.TrackingObject;
                    }
                    break;
            }
            return null;
        }
protected virtual object GetObject ( int row , int column , ObjectStyle style ) { switch ( style ) { case ObjectStyle . ExpandedBranch : Debug . Assert ( column == 0 ) ; return _currentBranches [ row ] . Branch ; case ObjectStyle . TrackingObject : return _currentBranches [ row ] . Id ; default : if ( style == TreeGridDesignerBranch . BrowsingObject ) { goto case ObjectStyle . TrackingObject ; } break ; } return null ; }
Derived classes may override to provide custom object location.
Derived classes may override to provide custom object location .
// Simple-celled columns shouldn't ask for an expansion
row
int
None
column
int
None
style
ObjectStyle
None