This example demonstrates how to allocate selected cells using adorners. To determine the adorner location, it is necessary to calculate upper left and lower right points of a rectangle that allocates the area of selected cells. The upper left point is calculated based on minimum column and row indexes within indexes of selected cells. The lower right point is calculated based on maximum indexes.
↧