BrightIdeasSoftware.ObjectListView.CalculateCellEditorBounds C# (CSharp) Method

CalculateCellEditorBounds() public method

Calculate the bounds of the edit control for the given item/column
public CalculateCellEditorBounds ( BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle
item BrightIdeasSoftware.OLVListItem
subItemIndex int
preferredSize System.Drawing.Size
return System.Drawing.Rectangle
        public Rectangle CalculateCellEditorBounds(OLVListItem item, int subItemIndex, Size preferredSize)
        {
            Rectangle r;
            if (this.View == View.Details)
                r = item.GetSubItemBounds(subItemIndex);
            else
                r = this.GetItemRect(item.Index, ItemBoundsPortion.Label);
            if (this.OwnerDraw)
                return CalculateCellEditorBoundsOwnerDrawn(item, subItemIndex, r, preferredSize);

            return CalculateCellEditorBoundsStandard(item, subItemIndex, r, preferredSize);
        }
ObjectListView