BrightIdeasSoftware.ObjectListView.CalculateCellBounds C# (CSharp) Method

CalculateCellBounds() public method

Return the bounds of the given cell
public CalculateCellBounds ( BrightIdeasSoftware.OLVListItem item, int subItemIndex ) : Rectangle
item BrightIdeasSoftware.OLVListItem The row to be edited
subItemIndex int The index of the cell to be edited
return System.Drawing.Rectangle
        public virtual Rectangle CalculateCellBounds(OLVListItem item, int subItemIndex)
        {
            // We use ItemBoundsPortion.Label rather than ItemBoundsPortion.Item
            // since Label extends to the right edge of the cell, whereas Item gives just the
            // current text width.
            return this.CalculateCellBounds(item, subItemIndex, ItemBoundsPortion.Label);
        }

Same methods

ObjectListView::CalculateCellBounds ( BrightIdeasSoftware.OLVListItem item, int subItemIndex, ItemBoundsPortion portion ) : Rectangle
ObjectListView