src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Retrieves a Rectangle object which describes the bounding rectangle
///     around an item in the list, in client coordinates.  If the item in question is not visible,
///     the rectangle will be outside the visible portion of the control.
/// </summary>
/// <param name="row">The row coordinate</param>
/// <param name="column">The column coordinate. Should be a display column.</param>
/// <returns>The bounding rectangle for the item.</returns>
Retrieves a Rectangle object which describes the bounding rectangle
around an item in the list, in client coordinates.  If the item in question is not visible,
the rectangle will be outside the visible portion of the control.
Retrieves a Rectangle object which describes the bounding rectangle around an item in the list in client coordinates . If the item in question is not visible the rectangle will be outside the visible portion of the control .
public Rectangle GetItemRectangle(int row, int column)
        {
            CheckIndex(row);
            NativeMethods.RECT rect;
            NativeMethods.SendMessage(Handle, NativeMethods.LB_GETITEMRECT, row, out rect);
            var itemRect = Rectangle.FromLTRB(rect.left, rect.top, rect.right, rect.bottom);
            if (myMctree != null)
            {
                LimitRectToColumn(column, ref itemRect);
                itemRect.Offset(-myXPos, 0);
            }
            return itemRect;
        }
public Rectangle GetItemRectangle ( int row , int column ) { CheckIndex ( row ) ; NativeMethods . RECT rect ; NativeMethods . SendMessage ( Handle , NativeMethods . LB_GETITEMRECT , row , out rect ) ; var itemRect = Rectangle . FromLTRB ( rect . left , rect . top , rect . right , rect . bottom ) ; if ( myMctree != null ) { LimitRectToColumn ( column , ref itemRect ) ; itemRect . Offset ( - myXPos , 0 ) ; } return itemRect ; }
Retrieves a Rectangle object which describes the bounding rectangle
around an item in the list, in client coordinates.
Retrieves a Rectangle object which describes the bounding rectangle around an item in the list in client coordinates .
// account for horizontal scroll position
The bounding rectangle for the item.
The bounding rectangle for the item .
row
int
The row coordinate
The row coordinate
column
int
The column coordinate. Should be a display column.
The column coordinate . Should be a display column .